Documentation
¶
Index ¶
- Constants
- func NewCheckboxPanel(ctx context.Context, parent page.ControlI)
- func NewDefaultPanel(ctx context.Context, parent page.ControlI)
- func NewHListPanel(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 NewTextboxPanel(ctx context.Context, parent page.ControlI)
- type CheckboxPanel
- type DefaultPanel
- type HListPanel
- type ProjectPanel
- type SelectListPanel
- type SelectedProvider
- type Table1Data
- type TableCheckboxPanel
- type TableDbPanel
- type TableMapData
- type TablePanel
- type TableProxyPanel
- func (p *TableProxyPanel) Action(ctx context.Context, a page.ActionParams)
- func (p *TableProxyPanel) BindData(ctx context.Context, s data.DataManagerI)
- func (f *TableProxyPanel) CellText(ctx context.Context, col ColumnI, rowNum int, colNum int, data interface{}) string
- func (control *TableProxyPanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)
- type TableSliceData
- type TextboxPanel
Constants ¶
const ( AjaxSubmit int = iota + 1 ServerSubmit ButtonSubmit ResetStateSubmit ProxyClick )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckboxPanel ¶
type CheckboxPanel struct {
Panel
Checkbox1 *Checkbox
Checkbox2 *Checkbox
Radio1 *RadioButton
Radio2 *RadioButton
Radio3 *RadioButton
Info *Panel
SubmitAjax *Button
SubmitServer *Button
}
func (*CheckboxPanel) Action ¶
func (p *CheckboxPanel) Action(ctx context.Context, a page.ActionParams)
func (*CheckboxPanel) DrawTemplate ¶
type HListPanel ¶
type HListPanel struct {
Panel
OList *OrderedList
UList *UnorderedList
SubmitAjax *Button
SubmitServer *Button
}
func (*HListPanel) BindData ¶
func (p *HListPanel) BindData(ctx context.Context, s data.DataManagerI)
func (*HListPanel) DrawTemplate ¶
type ProjectPanel ¶
type ProjectPanel struct {
Panel
// contains filtered or unexported fields
}
func NewProjectPanel ¶
func NewProjectPanel(parent page.ControlI) *ProjectPanel
func (*ProjectPanel) DrawTemplate ¶
DrawTemplate draws the contents of the TargetEditPanel panel.
func (*ProjectPanel) SetProject ¶
func (p *ProjectPanel) SetProject(project *Project)
type SelectListPanel ¶
type SelectListPanel struct {
Panel
SingleSelect *SelectList
SingleSelectWithSize *SelectList
RadioList1 *RadioList
RadioList2 *RadioList
RadioList3 *RadioList
MultiSelect *MultiselectList
CheckboxList1 *CheckboxList
SubmitAjax *Button
SubmitServer *Button
}
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
Table1 *PaginatedTable
Pager1 *DataPager
CheckboxColumn1 *column.CheckboxColumn
SelectCol *column.CheckboxColumn
SubmitAjax *Button
SubmitServer *Button
}
func (*TableCheckboxPanel) Action ¶
func (p *TableCheckboxPanel) Action(ctx context.Context, a page.ActionParams)
func (*TableCheckboxPanel) BindData ¶
func (f *TableCheckboxPanel) BindData(ctx context.Context, s data.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
Table1 *PaginatedTable
Pager1 *DataPager
}
func (*TableDbPanel) BindData ¶
func (p *TableDbPanel) BindData(ctx context.Context, s data.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) 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
Table1 *PaginatedTable
Pager1 *DataPager
Column1 *column.SliceColumn
Column2 *column.CustomColumn
Table2 *PaginatedTable
Pager2 *DataPager
Column3 *column.MapColumn
Column4 *column.GetterColumn
}
func (*TablePanel) BindData ¶
func (f *TablePanel) BindData(ctx context.Context, s data.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 (f *TablePanel) CellText(ctx context.Context, col 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 ¶
type TableProxyPanel ¶
type TableProxyPanel struct {
Panel
Table1 *PaginatedTable
Pager1 *DataPager
Pxy *Proxy
ProjectPanel *ProjectPanel
}
func (*TableProxyPanel) Action ¶
func (p *TableProxyPanel) Action(ctx context.Context, a page.ActionParams)
func (*TableProxyPanel) BindData ¶
func (p *TableProxyPanel) BindData(ctx context.Context, s data.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) DrawTemplate ¶
type TableSliceData ¶
type TableSliceData []string
type TextboxPanel ¶
type TextboxPanel struct {
Panel
PlainText *Textbox
MultiText *Textbox
IntegerText *IntegerTextbox
FloatText *FloatTextbox
EmailText *EmailTextbox
PasswordText *Textbox
SearchText *Textbox
DateTimeText *DateTextbox
DateText *DateTextbox
TimeText *DateTextbox
SubmitAjax *Button
SubmitServer *Button
}
func (*TextboxPanel) Action ¶
func (p *TextboxPanel) Action(ctx context.Context, a page.ActionParams)