panels

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

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

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 NewForms2Panel added in v0.13.8

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

func NewModalPanel added in v0.18.0

func NewModalPanel(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, _w io.Writer) (err error)

type Forms1Panel

type Forms1Panel struct {
	control.Panel
}

func (*Forms1Panel) DoAction added in v0.23.0

func (p *Forms1Panel) DoAction(ctx context.Context, a action.Params)

func (*Forms1Panel) DrawTemplate

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

func (*Forms1Panel) Init added in v0.5.0

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

type Forms2Panel added in v0.13.8

type Forms2Panel struct {
	control.Panel
}

func (*Forms2Panel) DrawTemplate added in v0.13.8

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

func (*Forms2Panel) Init added in v0.13.8

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

type ModalPanel added in v0.18.0

type ModalPanel struct {
	control.Panel
}

func (*ModalPanel) DoAction added in v0.23.0

func (p *ModalPanel) DoAction(ctx context.Context, a action.Params)

func (*ModalPanel) Init added in v0.18.0

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

type SelectListPanel added in v0.2.0

type SelectListPanel struct {
	control.Panel
}

func (*SelectListPanel) DoAction added in v0.23.0

func (p *SelectListPanel) DoAction(ctx context.Context, a action.Params)

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 table.ColumnI, info table.CellInfo) 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, _w io.Writer) (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

Jump to

Keyboard shortcuts

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