Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkbox ¶ added in v0.0.2
type Checkbox struct {
Option
IsChecked bool `yaml:"isChecked" json:"isChecked"`
Label string `yaml:"label" json:"label"`
}
func NewCheckbox ¶ added in v0.0.2
type Option ¶
type Option struct {
Type string `yaml:"type" json:"type"` // option type, such as "bool", "string" ...
Attrs map[string]string `yaml:"attrs" json:"attrs"`
Title string `yaml:"title" json:"title"`
Subtitle string `yaml:"subtitle" json:"subtitle"`
Code string `yaml:"code" json:"code"`
Description string `yaml:"description" json:"description"`
IsRequired bool `yaml:"isRequired" json:"isRequired"`
Value interface{} `yaml:"value" json:"value"`
}
func (*Option) BasicOption ¶
type OptionInterface ¶
type Options ¶
func NewOptions ¶
type TextBox ¶ added in v0.0.2
type TextBox struct {
Option
MaxLength int `yaml:"maxLength" json:"maxLength"`
Placeholder string `yaml:"placeholder" json:"placeholder"`
Cols int `yaml:"cols" json:"cols"`
Rows int `yaml:"rows" json:"rows"`
}
func NewTextBox ¶ added in v0.0.2
type TextField ¶ added in v0.0.2
type TextField struct {
Option `yaml:",inline"`
MaxLength int `yaml:"maxLength" json:"maxLength"`
Placeholder string `yaml:"placeholder" json:"placeholder"`
Size int `yaml:"size" json:"size"`
RightLabel string `yaml:"rightLabel" json:"rightLabel"`
}
func NewTextField ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.