Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Form ¶
type Form struct {
CSRFToken *request.CSRFToken
Method, URL string
Fields []*FormField
Model any
UpdatedFields []string
Disabled bool
}
Create a new form for a model.
type FormField ¶
type FormField struct {
Name, Label, Type, Value string
Autocomplete, Custom string
ReadOnly, Checked, Disabled, NeedsAdmin bool
Required, Multiple, Selected bool
Classes, LabelClasses, DivClasses []string
Options []*FormField
Model interface{}
// contains filtered or unexported fields
}
Formfield struct used to render and validate the form.
Click to show internal directories.
Click to hide internal directories.