Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2020 Changes in this version + func FormDecode(data []byte, form *Form) error + type CheckBox struct + IsChecked bool + Label string + func NewCheckBox(title string, subTitle string) *CheckBox + func (this *CheckBox) ApplyRequest(req *http.Request) (value interface{}, skip bool, err error) + func (this *CheckBox) Compose() string + func (this *CheckBox) Super() *Element + type CodeEditor struct + Lang string + Readonly bool + func NewCodeEditor(title string, subTitle string) *CodeEditor + func (this *CodeEditor) ApplyRequest(req *http.Request) (value interface{}, skip bool, err error) + func (this *CodeEditor) Compose() string + func (this *CodeEditor) Super() *Element + type Element struct + Attrs map[string]string + CSS string + ClassType string + Code string + Comment string + InitCode string + IsComposed bool + IsRequired bool + Javascript string + Namespace string + Subtitle string + Title string + ValidateCode string + Value interface{} + func (this *Element) Attr(name string, value string) + func (this *Element) ComposeAttrs(attrs map[string]string) string + type ElementInterface interface + ApplyRequest func(req *http.Request) (value interface{}, skip bool, err error) + Compose func() string + Super func() *Element + type EnvBox struct + func NewEnvBox(title string, subtitle string) *EnvBox + func (this *EnvBox) ApplyRequest(req *http.Request) (value interface{}, skip bool, err error) + func (this *EnvBox) Compose() string + func (this *EnvBox) Super() *Element + type Form struct + CSS string + ComposedAttrs map[string]string + Groups []*Group + Javascript string + Namespace string + ValidateCode string + func NewForm(namespace string) *Form + func (this *Form) ApplyRequest(req *http.Request) (values map[string]interface{}, errField string, err error) + func (this *Form) Compose() + func (this *Form) Encode() ([]byte, error) + func (this *Form) EncodePretty() ([]byte, error) + func (this *Form) Init(values map[string]interface{}) + func (this *Form) NewGroup() *Group + type Group struct + ComposedAttrs map[string]string + Elements []ElementInterface + HTML string + IsComposed bool + Namespace string + func (this *Group) Add(element ElementInterface) + func (this *Group) Compose() + type HTTPBox struct + func NewHTTPBox(title string, subtitle string) *HTTPBox + func (this *HTTPBox) ApplyRequest(req *http.Request) (value interface{}, skip bool, err error) + func (this *HTTPBox) Compose() string + func (this *HTTPBox) Super() *Element + type Option struct + Text string + Value string + type Options struct + Options []*Option + func NewOptions(title string, subtitle string) *Options + func (this *Options) AddOption(text string, value string) + func (this *Options) ApplyRequest(req *http.Request) (value interface{}, skip bool, err error) + func (this *Options) Compose() string + func (this *Options) Super() *Element + type Presentation struct + CSS string + HTML string + Javascript string + func NewPresentation() *Presentation + type ScriptBox struct + func NewScriptBox(title string, subTitle string) *ScriptBox + func (this *ScriptBox) ApplyRequest(req *http.Request) (value interface{}, skip bool, err error) + func (this *ScriptBox) Compose() string + func (this *ScriptBox) Super() *Element + type SingleValueList struct + ValueName string + func NewSingleValueList(title string, subtitle string) *SingleValueList + func (this *SingleValueList) ApplyRequest(req *http.Request) (value interface{}, skip bool, err error) + func (this *SingleValueList) Compose() string + func (this *SingleValueList) Super() *Element + type TextBox struct + Cols int + MaxLength int + Placeholder string + Rows int + func NewTextBox(title string, subTitle string) *TextBox + func (this *TextBox) ApplyRequest(req *http.Request) (value interface{}, skip bool, err error) + func (this *TextBox) Compose() string + func (this *TextBox) Super() *Element + type TextField struct + MaxLength int + Placeholder string + RightLabel string + Size int + func NewTextField(title string, subTitle string) *TextField + func (this *TextField) ApplyRequest(req *http.Request) (value interface{}, skip bool, err error) + func (this *TextField) Compose() string + func (this *TextField) Super() *Element