Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EXAMPLE_FullFieldImplementation ¶
type EXAMPLE_FullFieldImplementation interface { // FormValues for the field will be passed into this. (Can not be used together with FileField) Field // FormFiles for the field will be passed into this. (Can not be used together with Field) FileField // This will be called before the field is rendered. // // This is to generate HTML input and label elements. FormField // This will be called right after FormValues or FormFiles is called, // and before saving the form. Validator }
This is a full implementation of the interfaces.
These are all the possible interfaces that can be implemented on a field.
type Initializer ¶
This method is called on FormFields, and not models.
type MultiOptionsGetter ¶
type MultiOptionsGetter interface { GetXXXOptions___1() ([]Option, []Option) GetXXXOptions___2(r *request.Request) ([]Option, []Option) GetXXXOptions___3(r *request.Request, model any) ([]Option, []Option) GetXXXOptions___4(r *request.Request, model any, fieldName string) ([]Option, []Option) }
Options getter for fields defined in fields/multi_select.go
type OptionsGetter ¶
type OptionsGetter interface { // XXX is the fieldname, ___1 should be omitted. GetXXXOptions___1(r *request.Request) []string // XXX is the fieldname, ___2 should be omitted. GetXXXOptions___2(r *request.Request, model any) []string // XXX is the fieldname, ___3 should be omitted. GetXXXOptions___3(r *request.Request, model any, fieldName string) []string }
Options getter for fields defined in fields/slices.go
type Saver ¶
Fields of the creator model must adhere to the Field or FileField interface!
It is also optional to implement the Validator interface, or the Initializer interface on the fields.
type StringGetter ¶
type ValidatorTagged ¶
Click to show internal directories.
Click to hide internal directories.