Documentation ¶
Index ¶
- type ActionMenuWidget
- type BaseWidget
- type ByteBuilder
- type DivWidget
- func (self *DivWidget) AddWidget(w IWidget) *DivWidget
- func (self *DivWidget) Render(w io.Writer) error
- func (self *DivWidget) SetClass(s string) *DivWidget
- func (self *DivWidget) SetContent(content string) *DivWidget
- func (self *DivWidget) SetHeight(height string) *DivWidget
- func (self *DivWidget) SetStyle(row string) *DivWidget
- func (self *DivWidget) SetTitle(title string) *DivWidget
- func (self *DivWidget) SetWidth(width string) *DivWidget
- type FlexWidget
- type FormButtonWidget
- func (self *FormButtonWidget) Render(w io.Writer) error
- func (self *FormButtonWidget) SetName(name string) *FormButtonWidget
- func (self *FormButtonWidget) SetTitle(s string) *FormButtonWidget
- func (self *FormButtonWidget) SetType(s string) *FormButtonWidget
- func (self *FormButtonWidget) SetValue(value string) *FormButtonWidget
- type FormFileInputWidget
- func (self *FormFileInputWidget) Render(w io.Writer) error
- func (self *FormFileInputWidget) SetClass(class string) *FormFileInputWidget
- func (self *FormFileInputWidget) SetName(s string) *FormFileInputWidget
- func (self *FormFileInputWidget) SetPlaceholder(s string) *FormFileInputWidget
- func (self *FormFileInputWidget) SetTitle(s string) *FormFileInputWidget
- func (self *FormFileInputWidget) SetValue(value string) *FormFileInputWidget
- type FormInputWidget
- func (self *FormInputWidget) Render(w io.Writer) error
- func (self *FormInputWidget) SetClass(class string) *FormInputWidget
- func (self *FormInputWidget) SetDisable(yesno bool)
- func (self *FormInputWidget) SetName(s string) *FormInputWidget
- func (self *FormInputWidget) SetPlaceholder(s string) *FormInputWidget
- func (self *FormInputWidget) SetTitle(s string) *FormInputWidget
- func (self *FormInputWidget) SetValue(value string) *FormInputWidget
- type FormSelectOptionWidget
- type FormSelectWidget
- type FormTextWidget
- type FormWidget
- type HeaderWidget
- type IWidget
- type ImageWidget
- type LinkWidget
- type ListWidget
- type MainMenuWidget
- type MenuAction
- type MenuGroup
- type MenuWidget
- type PreWidget
- type Script
- type SectionWidget
- type Style
- type TableCelWidget
- type TableHeaderWidget
- type TableRowWidget
- type TableWidget
- type TextWidget
- type VBoxWidget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionMenuWidget ¶
type ActionMenuWidget struct {
// contains filtered or unexported fields
}
func NewActionMenuWidget ¶
func NewActionMenuWidget() *ActionMenuWidget
func (*ActionMenuWidget) Add ¶
func (self *ActionMenuWidget) Add(action *MenuAction) *ActionMenuWidget
type BaseWidget ¶
type BaseWidget struct {
// contains filtered or unexported fields
}
func NewBaseWidget ¶
func NewBaseWidget() *BaseWidget
func (*BaseWidget) AddScript ¶
func (self *BaseWidget) AddScript(script Script) *BaseWidget
func (*BaseWidget) AddStyle ¶
func (self *BaseWidget) AddStyle(s Style) *BaseWidget
func (*BaseWidget) SetWidget ¶
func (self *BaseWidget) SetWidget(widget IWidget)
type ByteBuilder ¶
func NewByteBuilder ¶
func NewByteBuilder() *ByteBuilder
func (*ByteBuilder) Append ¶
func (self *ByteBuilder) Append(chunk []byte)
func (*ByteBuilder) AppendString ¶
func (self *ByteBuilder) AppendString(str string)
func (ByteBuilder) Byte ¶
func (self ByteBuilder) Byte() []byte
type DivWidget ¶
type DivWidget struct {
// contains filtered or unexported fields
}
func NewDivWidget ¶
func NewDivWidget() *DivWidget
func (*DivWidget) SetContent ¶
/ deprecate
type FlexWidget ¶
type FlexWidget struct {
// contains filtered or unexported fields
}
func NewFlexWidget ¶
func NewFlexWidget() *FlexWidget
func (*FlexWidget) AddWidget ¶
func (self *FlexWidget) AddWidget(w IWidget) *FlexWidget
func (*FlexWidget) SetClass ¶
func (self *FlexWidget) SetClass(className string) *FlexWidget
func (*FlexWidget) SetStyle ¶
func (self *FlexWidget) SetStyle(row string) *FlexWidget
type FormButtonWidget ¶
type FormButtonWidget struct {
// contains filtered or unexported fields
}
func NewFormButtonWidget ¶
func NewFormButtonWidget() *FormButtonWidget
func (*FormButtonWidget) SetName ¶
func (self *FormButtonWidget) SetName(name string) *FormButtonWidget
func (*FormButtonWidget) SetTitle ¶
func (self *FormButtonWidget) SetTitle(s string) *FormButtonWidget
func (*FormButtonWidget) SetType ¶
func (self *FormButtonWidget) SetType(s string) *FormButtonWidget
func (*FormButtonWidget) SetValue ¶
func (self *FormButtonWidget) SetValue(value string) *FormButtonWidget
type FormFileInputWidget ¶
type FormFileInputWidget struct { Title string Name string Placeholder string Value string // contains filtered or unexported fields }
func NewFormFileInputWidget ¶
func NewFormFileInputWidget() *FormFileInputWidget
func (*FormFileInputWidget) SetClass ¶
func (self *FormFileInputWidget) SetClass(class string) *FormFileInputWidget
func (*FormFileInputWidget) SetName ¶
func (self *FormFileInputWidget) SetName(s string) *FormFileInputWidget
func (*FormFileInputWidget) SetPlaceholder ¶
func (self *FormFileInputWidget) SetPlaceholder(s string) *FormFileInputWidget
func (*FormFileInputWidget) SetTitle ¶
func (self *FormFileInputWidget) SetTitle(s string) *FormFileInputWidget
func (*FormFileInputWidget) SetValue ¶
func (self *FormFileInputWidget) SetValue(value string) *FormFileInputWidget
type FormInputWidget ¶
type FormInputWidget struct { Title string Name string Placeholder string Value string // contains filtered or unexported fields }
func NewFormInputWidget ¶
func NewFormInputWidget() *FormInputWidget
func (*FormInputWidget) SetClass ¶
func (self *FormInputWidget) SetClass(class string) *FormInputWidget
func (*FormInputWidget) SetDisable ¶
func (self *FormInputWidget) SetDisable(yesno bool)
func (*FormInputWidget) SetName ¶
func (self *FormInputWidget) SetName(s string) *FormInputWidget
func (*FormInputWidget) SetPlaceholder ¶
func (self *FormInputWidget) SetPlaceholder(s string) *FormInputWidget
func (*FormInputWidget) SetTitle ¶
func (self *FormInputWidget) SetTitle(s string) *FormInputWidget
func (*FormInputWidget) SetValue ¶
func (self *FormInputWidget) SetValue(value string) *FormInputWidget
type FormSelectOptionWidget ¶
type FormSelectOptionWidget struct {
// contains filtered or unexported fields
}
func NewFormSelectOptionWidget ¶
func NewFormSelectOptionWidget() *FormSelectOptionWidget
func (*FormSelectOptionWidget) SetName ¶
func (self *FormSelectOptionWidget) SetName(name string) *FormSelectOptionWidget
func (*FormSelectOptionWidget) SetValue ¶
func (self *FormSelectOptionWidget) SetValue(value string) *FormSelectOptionWidget
type FormSelectWidget ¶
type FormSelectWidget struct {
// contains filtered or unexported fields
}
func NewFormSelectWidget ¶
func NewFormSelectWidget() *FormSelectWidget
func (*FormSelectWidget) AddOption ¶
func (self *FormSelectWidget) AddOption(name string, value string) *FormSelectWidget
func (*FormSelectWidget) SetName ¶
func (self *FormSelectWidget) SetName(name string) *FormSelectWidget
type FormTextWidget ¶
type FormTextWidget struct {
// contains filtered or unexported fields
}
func NewFormTextWidget ¶
func NewFormTextWidget() *FormTextWidget
func (*FormTextWidget) SetClass ¶
func (self *FormTextWidget) SetClass(class string) *FormTextWidget
func (*FormTextWidget) SetName ¶
func (self *FormTextWidget) SetName(s string) *FormTextWidget
func (*FormTextWidget) SetValue ¶
func (self *FormTextWidget) SetValue(value string) *FormTextWidget
type FormWidget ¶
type FormWidget struct { Action string Method string Widget IWidget // contains filtered or unexported fields }
func NewFormWidget ¶
func NewFormWidget() *FormWidget
func (*FormWidget) SetAction ¶
func (self *FormWidget) SetAction(s string) *FormWidget
func (*FormWidget) SetEnctype ¶
func (self *FormWidget) SetEnctype(enctype string) *FormWidget
func (*FormWidget) SetMethod ¶
func (self *FormWidget) SetMethod(s string) *FormWidget
func (*FormWidget) SetWidget ¶
func (self *FormWidget) SetWidget(w IWidget) *FormWidget
type HeaderWidget ¶
type HeaderWidget struct {
// contains filtered or unexported fields
}
func NewHeaderWidget ¶
func NewHeaderWidget() *HeaderWidget
func (*HeaderWidget) SetTitle ¶
func (self *HeaderWidget) SetTitle(title string) *HeaderWidget
type ImageWidget ¶
type ImageWidget struct {
// contains filtered or unexported fields
}
func NewImageWidget ¶
func NewImageWidget() *ImageWidget
func (*ImageWidget) SetClass ¶
func (self *ImageWidget) SetClass(class string) *ImageWidget
func (*ImageWidget) SetSource ¶
func (self *ImageWidget) SetSource(s string) *ImageWidget
type LinkWidget ¶
type LinkWidget struct { Link string // contains filtered or unexported fields }
func NewLinkWidget ¶
func NewLinkWidget() *LinkWidget
func (*LinkWidget) AddWidget ¶
func (self *LinkWidget) AddWidget(widget IWidget) *LinkWidget
func (*LinkWidget) SetClass ¶
func (self *LinkWidget) SetClass(classNames string) *LinkWidget
func (*LinkWidget) SetContent ¶
func (self *LinkWidget) SetContent(content string) *LinkWidget
func (*LinkWidget) SetLink ¶
func (self *LinkWidget) SetLink(link string) *LinkWidget
type ListWidget ¶
func NewListWidget ¶
func NewListWidget() *ListWidget
func (*ListWidget) AddItem ¶
func (self *ListWidget) AddItem(item IWidget) *ListWidget
func (*ListWidget) SetClass ¶
func (self *ListWidget) SetClass(s string) *ListWidget
type MainMenuWidget ¶
type MainMenuWidget struct {
// contains filtered or unexported fields
}
func NewMainMenuWidget ¶
func NewMainMenuWidget() *MainMenuWidget
func (*MainMenuWidget) InitMain ¶
func (self *MainMenuWidget) InitMain(menuGroup *MenuGroup)
func (*MainMenuWidget) InitSetup ¶
func (self *MainMenuWidget) InitSetup(menuGroup *MenuGroup)
func (*MainMenuWidget) SetParam ¶
func (self *MainMenuWidget) SetParam(ID string, value int)
type MenuAction ¶
func NewMenuAction ¶
func NewMenuAction() *MenuAction
func (*MenuAction) SetClass ¶
func (self *MenuAction) SetClass(s string) *MenuAction
func (*MenuAction) SetIcon ¶
func (self *MenuAction) SetIcon(s string) *MenuAction
func (*MenuAction) SetLabel ¶
func (self *MenuAction) SetLabel(s string) *MenuAction
func (*MenuAction) SetLink ¶
func (self *MenuAction) SetLink(s string) *MenuAction
type MenuGroup ¶
type MenuGroup struct {
// contains filtered or unexported fields
}
func (*MenuGroup) Add ¶
func (self *MenuGroup) Add(manuAction *MenuAction)
type MenuWidget ¶
type MenuWidget struct {
// contains filtered or unexported fields
}
func NewMenuWidget ¶
func NewMenuWidget() *MenuWidget
func (*MenuWidget) Add ¶
func (self *MenuWidget) Add(manuGroup *MenuGroup)
type PreWidget ¶
type PreWidget struct {
// contains filtered or unexported fields
}
func NewPreWidget ¶
func NewPreWidget() *PreWidget
func (*PreWidget) SetContent ¶
type SectionWidget ¶
func NewSectionWidget ¶
func NewSectionWidget() *SectionWidget
func (*SectionWidget) SetTitle ¶
func (self *SectionWidget) SetTitle(s string) *SectionWidget
func (*SectionWidget) SetWidget ¶
func (self *SectionWidget) SetWidget(w IWidget) *SectionWidget
type TableCelWidget ¶
type TableCelWidget struct { Widget IWidget Content string // contains filtered or unexported fields }
func NewTableCellWidget ¶
func NewTableCellWidget() *TableCelWidget
func (*TableCelWidget) SetClass ¶
func (self *TableCelWidget) SetClass(s string) *TableCelWidget
func (*TableCelWidget) SetWidget ¶
func (self *TableCelWidget) SetWidget(w IWidget) *TableCelWidget
type TableHeaderWidget ¶
type TableHeaderWidget struct { }
type TableRowWidget ¶
type TableRowWidget struct { Cells []*TableCelWidget // contains filtered or unexported fields }
func NewTableRowWidget ¶
func NewTableRowWidget() *TableRowWidget
func (*TableRowWidget) AddCell ¶
func (self *TableRowWidget) AddCell(cell *TableCelWidget) *TableRowWidget
func (*TableRowWidget) SetClass ¶
func (self *TableRowWidget) SetClass(s string) *TableRowWidget
func (*TableRowWidget) SetTitle ¶
func (self *TableRowWidget) SetTitle(title string) *TableRowWidget
type TableWidget ¶
type TableWidget struct {
// contains filtered or unexported fields
}
func NewTableWidget ¶
func NewTableWidget() *TableWidget
func (*TableWidget) AddRow ¶
func (self *TableWidget) AddRow(row *TableRowWidget) *TableWidget
func (*TableWidget) SetClass ¶
func (self *TableWidget) SetClass(s string) *TableWidget
type TextWidget ¶
type TextWidget struct {
// contains filtered or unexported fields
}
func NewTextWidget ¶
func NewTextWidget() *TextWidget
func NewTextWidgetWithText ¶
func NewTextWidgetWithText(content string) *TextWidget
func (*TextWidget) SetClass ¶
func (self *TextWidget) SetClass(class string) *TextWidget
type VBoxWidget ¶
type VBoxWidget struct {
Items []IWidget
}
func NewVBoxWidget ¶
func NewVBoxWidget() *VBoxWidget
func (*VBoxWidget) Add ¶
func (self *VBoxWidget) Add(widget IWidget) *VBoxWidget
Source Files ¶
- ActionMenuWidget.go
- BaseWidget.go
- ByteBuilder.go
- ChartWidget.go
- DivWidget.go
- FlexWidget.go
- FormButtonWidget.go
- FormFileInputWidget.go
- FormInputWidget.go
- FormSelectWidget.go
- FormTextWidget.go
- FormWidget.go
- HeaderWidget.go
- IWidget.go
- ImageWidget.go
- LinkWidget.go
- ListWidget.go
- MainMenuWidget.go
- MenuAction.go
- MenuWidget.go
- PreWidget.go
- Script.go
- SectionWidget.go
- Style.go
- TableWidget.go
- TextWidget.go
- VBoxWidget.go
Click to show internal directories.
Click to hide internal directories.