controls

package
v0.31.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package controls contains example pages that demonstrate how to set up and use various Goradd controls. Most Goradd controls mirror html controls.

Index

Constants

View Source
const ControlsFormDetailID = "detailPanel"
View Source
const ControlsFormId = "ControlsForm"
View Source
const ControlsFormListID = "listPanel"
View Source
const ControlsFormPath = "/goradd/examples/controls.g"
View Source
const (
	TestButtonAction = iota + 1
)

Variables

This section is empty.

Functions

func RegisterPanel added in v0.1.1

func RegisterPanel(key string,
	name string,
	f createFunction)

Types

type ControlsForm

type ControlsForm struct {
	FormBase
}

func (*ControlsForm) AddHeadTags

func (ctrl *ControlsForm) AddHeadTags()

AddHeadTags adds items that will appear in the head tag of the html page.

func (*ControlsForm) AddRelatedFiles added in v0.13.3

func (f *ControlsForm) AddRelatedFiles()

func (*ControlsForm) BindData added in v0.1.1

func (f *ControlsForm) BindData(ctx context.Context, s DataManagerI)

func (*ControlsForm) CreateControls added in v0.29.0

func (f *ControlsForm) CreateControls(ctx context.Context)

func (*ControlsForm) DrawTemplate

func (ctrl *ControlsForm) DrawTemplate(ctx context.Context, _w io.Writer) (err error)

DrawTemplate draws the content of the matching form's template file.

func (*ControlsForm) Init added in v0.5.0

func (f *ControlsForm) Init(ctx context.Context, formID string)

func (*ControlsForm) LoadControls

func (f *ControlsForm) LoadControls(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL