Documentation
¶
Index ¶
- type BaseField
- func (f *BaseField) GetLabel() string
- func (f *BaseField) GetName() string
- func (f *BaseField) GetValidationFunctions() []form.FieldValidationFunc
- func (f *BaseField) RegisterInitialValue(value interface{})
- func (f *BaseField) RegisterLabel(label string) error
- func (f *BaseField) RegisterName(name string) error
- func (f *BaseField) RegisterValidationFunctions(validationFuncs ...form.FieldValidationFunc)
- func (f *BaseField) SetSupersedingAttribute(name string, value *string)
- type BooleanField
- type Choice
- type ChoiceField
- type DateField
- type EmailField
- type FloatField
- type IntegerField
- type MultipleChoiceField
- func (f *MultipleChoiceField) GetValidationFunctions() []form.FieldValidationFunc
- func (f *MultipleChoiceField) GoTypeToHTMLType(value interface{}) (form.HTMLType, error)
- func (f *MultipleChoiceField) HTML() (string, error)
- func (f *MultipleChoiceField) HTMLTypeToGoType(value form.HTMLType) (interface{}, error)
- type TextField
- type URLField
- type UUIDField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseField ¶
type BaseField struct { Name string Label string ValidationFuncs []form.FieldValidationFunc InitialValue interface{} SupersedingAttributes map[string]*string }
func (*BaseField) GetValidationFunctions ¶
func (f *BaseField) GetValidationFunctions() []form.FieldValidationFunc
func (*BaseField) RegisterInitialValue ¶
func (f *BaseField) RegisterInitialValue(value interface{})
func (*BaseField) RegisterLabel ¶
func (*BaseField) RegisterName ¶
func (*BaseField) RegisterValidationFunctions ¶
func (f *BaseField) RegisterValidationFunctions(validationFuncs ...form.FieldValidationFunc)
func (*BaseField) SetSupersedingAttribute ¶
type BooleanField ¶
func (*BooleanField) GetValidationFunctions ¶
func (f *BooleanField) GetValidationFunctions() []form.FieldValidationFunc
func (*BooleanField) GoTypeToHTMLType ¶
func (f *BooleanField) GoTypeToHTMLType(value interface{}) (form.HTMLType, error)
func (*BooleanField) HTML ¶
func (f *BooleanField) HTML() (string, error)
func (*BooleanField) HTMLTypeToGoType ¶
func (f *BooleanField) HTMLTypeToGoType(value form.HTMLType) (interface{}, error)
type ChoiceField ¶
func (*ChoiceField) GetValidationFunctions ¶
func (f *ChoiceField) GetValidationFunctions() []form.FieldValidationFunc
func (*ChoiceField) GoTypeToHTMLType ¶
func (f *ChoiceField) GoTypeToHTMLType(value interface{}) (form.HTMLType, error)
func (*ChoiceField) HTML ¶
func (f *ChoiceField) HTML() (string, error)
func (*ChoiceField) HTMLTypeToGoType ¶
func (f *ChoiceField) HTMLTypeToGoType(value form.HTMLType) (interface{}, error)
type DateField ¶
type DateField struct { BaseField Required bool MinDate *time.Time MaxDate *time.Time Placeholder *string }
func (*DateField) GetValidationFunctions ¶
func (f *DateField) GetValidationFunctions() []form.FieldValidationFunc
func (*DateField) GoTypeToHTMLType ¶
type EmailField ¶
func (*EmailField) GetValidationFunctions ¶
func (f *EmailField) GetValidationFunctions() []form.FieldValidationFunc
func (*EmailField) GoTypeToHTMLType ¶
func (f *EmailField) GoTypeToHTMLType(value interface{}) (form.HTMLType, error)
func (*EmailField) HTML ¶
func (f *EmailField) HTML() (string, error)
func (*EmailField) HTMLTypeToGoType ¶
func (f *EmailField) HTMLTypeToGoType(value form.HTMLType) (interface{}, error)
type FloatField ¶
func (*FloatField) GetValidationFunctions ¶
func (f *FloatField) GetValidationFunctions() []form.FieldValidationFunc
func (*FloatField) GoTypeToHTMLType ¶
func (f *FloatField) GoTypeToHTMLType(value interface{}) (form.HTMLType, error)
func (*FloatField) HTML ¶
func (f *FloatField) HTML() (string, error)
func (*FloatField) HTMLTypeToGoType ¶
func (f *FloatField) HTMLTypeToGoType(value form.HTMLType) (interface{}, error)
type IntegerField ¶
func (*IntegerField) GetValidationFunctions ¶
func (f *IntegerField) GetValidationFunctions() []form.FieldValidationFunc
func (*IntegerField) GoTypeToHTMLType ¶
func (f *IntegerField) GoTypeToHTMLType(value interface{}) (form.HTMLType, error)
func (*IntegerField) HTML ¶
func (f *IntegerField) HTML() (string, error)
func (*IntegerField) HTMLTypeToGoType ¶
func (f *IntegerField) HTMLTypeToGoType(value form.HTMLType) (interface{}, error)
type MultipleChoiceField ¶
func (*MultipleChoiceField) GetValidationFunctions ¶
func (f *MultipleChoiceField) GetValidationFunctions() []form.FieldValidationFunc
func (*MultipleChoiceField) GoTypeToHTMLType ¶
func (f *MultipleChoiceField) GoTypeToHTMLType(value interface{}) (form.HTMLType, error)
func (*MultipleChoiceField) HTML ¶
func (f *MultipleChoiceField) HTML() (string, error)
func (*MultipleChoiceField) HTMLTypeToGoType ¶
func (f *MultipleChoiceField) HTMLTypeToGoType(value form.HTMLType) (interface{}, error)
type TextField ¶
type TextField struct { BaseField Placeholder *string MaxLength *uint MinLength *uint Required bool Regex *string }
func (*TextField) GetValidationFunctions ¶
func (f *TextField) GetValidationFunctions() []form.FieldValidationFunc
func (*TextField) GoTypeToHTMLType ¶
type URLField ¶
func (*URLField) GetValidationFunctions ¶
func (f *URLField) GetValidationFunctions() []form.FieldValidationFunc
func (*URLField) GoTypeToHTMLType ¶
type UUIDField ¶ added in v0.0.2
func (*UUIDField) GetValidationFunctions ¶ added in v0.0.2
func (f *UUIDField) GetValidationFunctions() []form.FieldValidationFunc
func (*UUIDField) GoTypeToHTMLType ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.