Documentation ¶
Index ¶
- Constants
- func NewCheckboxPanel(ctx context.Context, parent page.ControlI)
- func NewDefaultPanel(ctx context.Context, parent page.ControlI)
- func NewDialogsPanel(ctx context.Context, parent page.ControlI)
- func NewHListPanel(ctx context.Context, parent page.ControlI)
- func NewRepeaterPanel(ctx context.Context, parent page.ControlI)
- func NewSelectListPanel(ctx context.Context, parent page.ControlI)
- func NewTableCheckboxPanel(ctx context.Context, parent page.ControlI)
- func NewTableDbPanel(ctx context.Context, parent page.ControlI)
- func NewTablePanel(ctx context.Context, parent page.ControlI)
- func NewTableProxyPanel(ctx context.Context, parent page.ControlI)
- func NewTableSelectPanel(ctx context.Context, parent page.ControlI)
- func NewTextboxPanel(ctx context.Context, parent page.ControlI)
- type CheckboxPanel
- type DefaultPanel
- type DialogsPanel
- type HListPanel
- type ProjectPanel
- type ProjectPanelCreator
- type RepeaterPanel
- func (p *RepeaterPanel) BindData(ctx context.Context, s DataManagerI)
- func (ctrl *RepeaterPanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)
- func (p *RepeaterPanel) Init(ctx context.Context, parent page.ControlI, id string)
- func (p *RepeaterPanel) RepeaterHtml(ctx context.Context, r RepeaterI, i int, data interface{}, buf *bytes.Buffer) error
- type SelectListPanel
- type SelectedProvider
- type Table1Data
- type TableCheckboxPanel
- func (p *TableCheckboxPanel) Action(ctx context.Context, a page.ActionParams)
- func (f *TableCheckboxPanel) BindData(ctx context.Context, s DataManagerI)
- func (ctrl *TableCheckboxPanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)
- func (p *TableCheckboxPanel) Init(ctx context.Context, parent page.ControlI, id string)
- type TableDbPanel
- func (p *TableDbPanel) BindData(ctx context.Context, s DataManagerI)
- func (p *TableDbPanel) CellText(ctx context.Context, col ColumnI, info CellInfo) string
- func (ctrl *TableDbPanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)
- func (p *TableDbPanel) Init(ctx context.Context, parent page.ControlI, id string)
- type TableMapData
- type TablePanel
- func (p *TablePanel) BindData(ctx context.Context, s DataManagerI)
- func (p *TablePanel) CellText(ctx context.Context, col ColumnI, info CellInfo) string
- func (ctrl *TablePanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)
- func (p *TablePanel) Init(ctx context.Context, parent page.ControlI, id string)
- type TableProxyPanel
- func (p *TableProxyPanel) Action(ctx context.Context, a page.ActionParams)
- func (p *TableProxyPanel) BindData(ctx context.Context, s DataManagerI)
- func (p *TableProxyPanel) CellText(ctx context.Context, col ColumnI, info CellInfo) string
- func (ctrl *TableProxyPanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)
- func (p *TableProxyPanel) Init(ctx context.Context, parent page.ControlI, id string)
- type TableSelectPanel
- func (p *TableSelectPanel) Action(ctx context.Context, a page.ActionParams)
- func (p *TableSelectPanel) BindData(ctx context.Context, s DataManagerI)
- func (ctrl *TableSelectPanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)
- func (p *TableSelectPanel) Init(ctx context.Context, parent page.ControlI, id string)
- type TableSliceData
- type TextboxPanel
Constants ¶
const ( AjaxSubmit int = iota + 1 ServerSubmit ButtonSubmit ResetStateSubmit ProxyClick )
const ( ButtonAlert = iota + 11010 ButtonMessage MessageAction )
Variables ¶
This section is empty.
Functions ¶
func NewDialogsPanel ¶ added in v0.9.3
func NewRepeaterPanel ¶ added in v0.2.3
func NewTableSelectPanel ¶ added in v0.2.0
Types ¶
type CheckboxPanel ¶
type CheckboxPanel struct {
Panel
}
func (*CheckboxPanel) Action ¶
func (p *CheckboxPanel) Action(ctx context.Context, a page.ActionParams)
func (*CheckboxPanel) DrawTemplate ¶
type DialogsPanel ¶ added in v0.9.3
type DialogsPanel struct {
Panel
}
func (*DialogsPanel) Action ¶ added in v0.9.3
func (p *DialogsPanel) Action(ctx context.Context, a page.ActionParams)
func (*DialogsPanel) DrawTemplate ¶ added in v0.9.3
type HListPanel ¶
type HListPanel struct {
Panel
}
func (*HListPanel) BindData ¶
func (p *HListPanel) BindData(ctx context.Context, s DataManagerI)
func (*HListPanel) DrawTemplate ¶
type ProjectPanel ¶
type ProjectPanel struct { Panel // contains filtered or unexported fields }
func GetProjectPanel ¶ added in v0.2.0
func GetProjectPanel(c page.ControlI) *ProjectPanel
GetProjectPanel is a convenience method to return the panel with the given id from the page.
func NewProjectPanel ¶
func NewProjectPanel(parent page.ControlI) *ProjectPanel
func (*ProjectPanel) DrawTemplate ¶
DrawTemplate draws the contents of the ProjectPanel panel.
func (*ProjectPanel) SetProject ¶
func (p *ProjectPanel) SetProject(project *Project)
type ProjectPanelCreator ¶ added in v0.2.0
type ProjectPanelCreator struct { }
PanelCreator creates a div control with child controls. Pass it to AddControls or as a child of a parent control.
type RepeaterPanel ¶ added in v0.2.3
type RepeaterPanel struct {
Panel
}
func (*RepeaterPanel) BindData ¶ added in v0.2.3
func (p *RepeaterPanel) BindData(ctx context.Context, s DataManagerI)
BindData satisfies the data provider interface so that the parent panel of the table is the one that is providing the table.
func (*RepeaterPanel) DrawTemplate ¶ added in v0.2.3
func (*RepeaterPanel) RepeaterHtml ¶ added in v0.2.3
type SelectListPanel ¶
type SelectListPanel struct {
Panel
}
func (*SelectListPanel) Action ¶ added in v0.2.0
func (p *SelectListPanel) Action(ctx context.Context, a page.ActionParams)
func (*SelectListPanel) DrawTemplate ¶
type SelectedProvider ¶
type SelectedProvider struct {
column.DefaultCheckboxProvider
}
func (SelectedProvider) IsChecked ¶
func (c SelectedProvider) IsChecked(data interface{}) bool
func (SelectedProvider) RowID ¶
func (c SelectedProvider) RowID(data interface{}) string
type Table1Data ¶
type TableCheckboxPanel ¶
type TableCheckboxPanel struct {
Panel
}
func (*TableCheckboxPanel) Action ¶
func (p *TableCheckboxPanel) Action(ctx context.Context, a page.ActionParams)
func (*TableCheckboxPanel) BindData ¶
func (f *TableCheckboxPanel) BindData(ctx context.Context, s DataManagerI)
BindData satisfies the data provider interface so that the parent panel of the table is the one that is providing the table.
func (*TableCheckboxPanel) DrawTemplate ¶
type TableDbPanel ¶
type TableDbPanel struct {
Panel
}
func (*TableDbPanel) BindData ¶
func (p *TableDbPanel) BindData(ctx context.Context, s DataManagerI)
BindData satisfies the data provider interface so that the parent panel of the table is the one that is providing the table.
func (*TableDbPanel) CellText ¶
func (p *TableDbPanel) CellText(ctx context.Context, col ColumnI, info CellInfo) string
func (*TableDbPanel) DrawTemplate ¶
type TableMapData ¶
func (TableMapData) Get ¶
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 ¶
type TablePanel struct {
Panel
}
func (*TablePanel) BindData ¶
func (p *TablePanel) BindData(ctx context.Context, s 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 ¶
func (p *TablePanel) CellText(ctx context.Context, col ColumnI, info CellInfo) string
CellText here satisfies the CellTexter interface so that the panel can provide the text for a cell.
func (*TablePanel) DrawTemplate ¶
type TableProxyPanel ¶
type TableProxyPanel struct {
Panel
}
func (*TableProxyPanel) Action ¶
func (p *TableProxyPanel) Action(ctx context.Context, a page.ActionParams)
func (*TableProxyPanel) BindData ¶
func (p *TableProxyPanel) BindData(ctx context.Context, s DataManagerI)
BindData satisfies the data provider interface so that the parent panel of the table is the one that is providing the table.
func (*TableProxyPanel) CellText ¶
func (p *TableProxyPanel) CellText(ctx context.Context, col ColumnI, info CellInfo) string
func (*TableProxyPanel) DrawTemplate ¶
type TableSelectPanel ¶ added in v0.2.0
type TableSelectPanel struct {
Panel
}
func (*TableSelectPanel) Action ¶ added in v0.2.0
func (p *TableSelectPanel) Action(ctx context.Context, a page.ActionParams)
func (*TableSelectPanel) BindData ¶ added in v0.2.0
func (p *TableSelectPanel) BindData(ctx context.Context, s DataManagerI)
BindData satisfies the data provider interface so that the parent panel of the table is the one that is providing the table.
func (*TableSelectPanel) DrawTemplate ¶ added in v0.2.0
type TableSliceData ¶
type TableSliceData []string
type TextboxPanel ¶
type TextboxPanel struct {
Panel
}
func (*TextboxPanel) Action ¶
func (p *TextboxPanel) Action(ctx context.Context, a page.ActionParams)
func (*TextboxPanel) DrawTemplate ¶
Source Files ¶
- build.go
- checkboxes.go
- checkboxes.tpl.go
- default.go
- default.tpl.go
- dialogs.go
- dialogs.tpl.go
- hlist.go
- hlist.tpl.go
- init.go
- project_panel.tpl.go
- repeater.go
- repeater.tpl.go
- selectlist.go
- selectlist.tpl.go
- table.go
- table.tpl.go
- table_checkbox.go
- table_checkbox.tpl.go
- table_db.go
- table_db.tpl.go
- table_proxy.go
- table_proxy.tpl.go
- table_select.go
- table_select.tpl.go
- textbox.go
- textbox.tpl.go