Documentation
¶
Index ¶
- func BoolFormatter(v reflect.Value) string
- func CheckboxField(name, label, value string) *bolt.Field
- func EmailField(name, label, value string) *bolt.Field
- func HiddenField(name, label, value string) *bolt.Field
- func HiddenIdField(name, label, value string) *bolt.Field
- func IdFormatter(v reflect.Value) string
- func IntFormatter(v reflect.Value) string
- func NumberField(name, label, value string) *bolt.Field
- func PhoneField(name, label, value string) *bolt.Field
- func RadioField(name, label, value string) *bolt.Field
- func SelectField(name, label, value string) *bolt.Field
- func StringFormatter(v reflect.Value) string
- func StringSliceFormatter(v reflect.Value) string
- func TextField(name, label, value string) *bolt.Field
- func TextareaField(name, label, value string) *bolt.Field
- type Component
- type FieldConfig
- type FieldTypes
- type Formatter
- type Model
- type RenderMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolFormatter ¶
func EmailField ¶
func HiddenField ¶
func HiddenIdField ¶
func IdFormatter ¶
func IntFormatter ¶
func NumberField ¶
func PhoneField ¶
func RadioField ¶
func SelectField ¶
func StringFormatter ¶
func StringSliceFormatter ¶
func TextareaField ¶
Types ¶
type FieldConfig ¶
type FieldConfig struct {
// contains filtered or unexported fields
}
func (*FieldConfig) Component ¶
func (c *FieldConfig) Component(component Component)
func (*FieldConfig) Formatter ¶
func (c *FieldConfig) Formatter(formatter Formatter)
func (*FieldConfig) Label ¶
func (c *FieldConfig) Label(label string)
func (*FieldConfig) Name ¶
func (c *FieldConfig) Name(name string)
type FieldTypes ¶
type FieldTypes string
const ( IdFieldType FieldTypes = "Id" TextFieldType FieldTypes = "Text" HiddenFieldType FieldTypes = "Hidden" CheckboxFieldType FieldTypes = "Checkbox" NumberFieldType FieldTypes = "Number" EmailFieldType FieldTypes = "Email" PhoneFieldType FieldTypes = "Phone" // TagsFieldType FieldTypes = "Tags" RadioFieldType FieldTypes = "Radio" TextareaFieldType FieldTypes = "Textarea" SelectFieldType FieldTypes = "Select" )
func (FieldTypes) String ¶
func (t FieldTypes) String() string
type Model ¶
func (*Model) FieldConfig ¶
func (m *Model) FieldConfig(name string) *FieldConfig
func (*Model) UseComponent ¶
type RenderMethod ¶
type RenderMethod string
const ( RenderByName RenderMethod = "RenderByName" RenderByFieldType RenderMethod = "RenderByFieldType" RenderByDataType RenderMethod = "RenderByDataType" )
func (RenderMethod) String ¶
func (m RenderMethod) String() string
Click to show internal directories.
Click to hide internal directories.