panels

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AjaxSubmit int = iota + 1
	ServerSubmit
	ButtonSubmit
)

Variables

This section is empty.

Functions

func NewDefaultPanel

func NewDefaultPanel(ctx context.Context, parent page.ControlI)

func NewForms1Panel

func NewForms1Panel(ctx context.Context, parent page.ControlI)

func NewSelectListPanel added in v0.2.0

func NewSelectListPanel(ctx context.Context, parent page.ControlI)

func NewTablePanel added in v0.2.0

func NewTablePanel(ctx context.Context, parent page.ControlI)

Types

type DefaultPanel

type DefaultPanel struct {
	Panel
}

func (*DefaultPanel) DrawTemplate

func (ctrl *DefaultPanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)

type Forms1Panel

type Forms1Panel struct {
	control.Panel
}

func (*Forms1Panel) DrawTemplate

func (ctrl *Forms1Panel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)

func (*Forms1Panel) Init added in v0.5.0

func (p *Forms1Panel) Init(ctx context.Context, parent page.ControlI, id string)

type SelectListPanel added in v0.2.0

type SelectListPanel struct {
	control.Panel
}

func (*SelectListPanel) Action added in v0.2.0

func (p *SelectListPanel) Action(ctx context.Context, a page.ActionParams)

func (*SelectListPanel) Init added in v0.5.0

func (p *SelectListPanel) Init(ctx context.Context, parent page.ControlI, id string)

type TableMapData added in v0.2.0

type TableMapData map[string]string

func (TableMapData) Get added in v0.2.0

func (m TableMapData) Get(i string) string

Make the TableMapData satisfy the Getter interface so it can be used in a Getter column.

type TablePanel added in v0.2.0

type TablePanel struct {
	control.Panel
}

func (*TablePanel) BindData added in v0.2.0

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

BindData satisfies the data provider interface so that the parent panel of the table is the one that is providing the table.

func (*TablePanel) CellText added in v0.2.0

func (f *TablePanel) CellText(ctx context.Context, col control.ColumnI, rowNum int, colNum int, data interface{}) string

CellText here satisfies the CellTexter interface so that the panel can provide the text for a cell.

func (*TablePanel) DrawTemplate added in v0.2.0

func (ctrl *TablePanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)

func (*TablePanel) Init added in v0.5.0

func (f *TablePanel) Init(ctx context.Context, parent page.ControlI, id string)

type TableSliceData added in v0.2.0

type TableSliceData []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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