panels

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewCheckboxPanel

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

func NewDefaultPanel

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

func NewHListPanel

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

func NewSelectListPanel

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

func NewTableCheckboxPanel

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

func NewTableDbPanel

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

func NewTablePanel

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

func NewTableProxyPanel

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

func NewTableSelectPanel added in v0.2.0

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

func NewTextboxPanel

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

Types

type CheckboxPanel

type CheckboxPanel struct {
	Panel
}

func (*CheckboxPanel) Action

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

func (*CheckboxPanel) DrawTemplate

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

type DefaultPanel

type DefaultPanel struct {
	Panel
}

func (*DefaultPanel) DrawTemplate

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

type HListPanel

type HListPanel struct {
	Panel
}

func (*HListPanel) BindData

func (p *HListPanel) BindData(ctx context.Context, s data.DataManagerI)

func (*HListPanel) DrawTemplate

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

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

func (p *ProjectPanel) DrawTemplate(ctx context.Context, buf *bytes.Buffer) (err error)

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.

func (ProjectPanelCreator) Create added in v0.2.0

Create is called by the framework to create the panel. You do not normally need to call this.

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

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

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 Table1Data map[string]string

type TableCheckboxPanel

type TableCheckboxPanel struct {
	Panel
}

func (*TableCheckboxPanel) Action

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

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

type TableDbPanel

type TableDbPanel struct {
	Panel
}

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) CellText

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

func (*TableDbPanel) DrawTemplate

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

type TableMapData

type TableMapData map[string]string

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 (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

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

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 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) CellText

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

func (*TableProxyPanel) DrawTemplate

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

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 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 (*TableSelectPanel) DrawTemplate added in v0.2.0

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

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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