Versions in this module Expand all Collapse all v0 v0.1.72 Sep 3, 2019 v0.1.12 Jun 25, 2020 v0.1.10 Mar 29, 2020 v0.1.9 Nov 25, 2019 v0.1.8 Sep 30, 2019 Changes in this version type Element + IsComposed bool type Form + ComposedAttrs map[string]string type Group + ComposedAttrs map[string]string + IsComposed bool + 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 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 v0.1.7 Sep 1, 2019 v0.1.6 Jul 21, 2019 v0.1.5 Jun 9, 2019 v0.1.4 May 19, 2019 v0.1.3 May 4, 2019 v0.1.2 Apr 19, 2019 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 + 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 + 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 + Elements []ElementInterface + HTML string + Namespace string + func (this *Group) Add(element ElementInterface) + func (this *Group) Compose() + 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 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