Versions in this module Expand all Collapse all v1 v1.6.2 May 10, 2023 Changes in this version + var AllTagsInput = []string + var AllTagsLabel = []string + func NumberField(n any) interfaces.FormField + func TagMapToElementAttributes(t tags.TagMap, fields ...string) string + type BoolField bool + func (i *BoolField) FormValues(v []string) error + func (i *BoolField) Scan(src interface{}) error + func (i BoolField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i BoolField) LabelHTML(_ *request.Request, name string, display_text string, tags tags.TagMap) interfaces.Element + func (i BoolField) Value() (driver.Value, error) + type CheckBoxField []string + func (i *CheckBoxField) FormValues(v []string) error + func (i *CheckBoxField) Scan(src interface{}) error + func (i CheckBoxField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i CheckBoxField) LabelHTML(_ *request.Request, name string, display string, tags tags.TagMap) interfaces.Element + func (i CheckBoxField) Value() (driver.Value, error) + type DateField time.Time + func (i *DateField) FormValues(v []string) error + func (i *DateField) Scan(src interface{}) error + func (i DateField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i DateField) LabelHTML(_ *request.Request, name string, display_text string, tags tags.TagMap) interfaces.Element + func (i DateField) Value() (driver.Value, error) + type DateTimeField time.Time + func (i *DateTimeField) FormValues(v []string) error + func (i *DateTimeField) Scan(src interface{}) error + func (i DateTimeField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i DateTimeField) LabelHTML(_ *request.Request, name string, display_text string, tags tags.TagMap) interfaces.Element + func (i DateTimeField) Value() (driver.Value, error) + type DoubleMultipleSelectField struct + Left []interfaces.Option + Right []interfaces.Option + func (i *DoubleMultipleSelectField) FormValues(v []string) error + func (i *DoubleMultipleSelectField) Initial(r *request.Request, model any, fieldName string) + func (i *DoubleMultipleSelectField) Scan(src interface{}) error + func (i DoubleMultipleSelectField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i DoubleMultipleSelectField) LabelHTML(_ *request.Request, name string, display_text string, tags tags.TagMap) interfaces.Element + func (i DoubleMultipleSelectField) Value() (driver.Value, error) + func (i DoubleMultipleSelectField) Values() []string + type ElementType string + func (e ElementType) HTML() template.HTML + func (e ElementType) String() string + type FileField struct + File interfaces.File + Path string + URL string + func (i *FileField) FormFiles(files []interfaces.File) error + func (i *FileField) Save(filer fs.Filer, media_url, pathInFiler string) error + func (i *FileField) Scan(value interface{}) error + func (i FileField) InputHTML(r *request.Request, form_name string, tags tags.TagMap) interfaces.Element + func (i FileField) LabelHTML(r *request.Request, form_name, display_text string, tags tags.TagMap) interfaces.Element + func (i FileField) ListDisplay() string + func (i FileField) String() string + func (i FileField) Value() (driver.Value, error) + type FloatField float64 + func (i *FloatField) FormValues(v []string) error + func (i *FloatField) Scan(src interface{}) error + func (i FloatField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i FloatField) LabelHTML(_ *request.Request, name string, display_text string, tags tags.TagMap) interfaces.Element + func (i FloatField) Value() (driver.Value, error) + type FormFile struct + Filename string + OpenFunc func() (io.ReadSeekCloser, error) + func (f FormFile) Name() string + func (f FormFile) Open() (io.ReadSeekCloser, error) + type IntField int64 + func (i *IntField) FormValues(v []string) error + func (i *IntField) Scan(src interface{}) error + func (i IntField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i IntField) LabelHTML(_ *request.Request, name string, display_text string, tags tags.TagMap) interfaces.Element + func (i IntField) Value() (driver.Value, error) + type MultipleSelectField []string + func (i *MultipleSelectField) FormValues(v []string) error + func (i *MultipleSelectField) Initial(r *request.Request, model any, fieldName string) + func (i *MultipleSelectField) Scan(src interface{}) error + func (i MultipleSelectField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i MultipleSelectField) LabelHTML(_ *request.Request, name string, display_text string, tags tags.TagMap) interfaces.Element + func (i MultipleSelectField) Value() (driver.Value, error) + type Option struct + Text string + Val string + func AutoOption(v any) Option + func (o *Option) UnmarshalJSON(b []byte) error + func (o Option) Label() string + func (o Option) MarshalJSON() ([]byte, error) + func (o Option) Value() string + type SelectField []string + func (i *SelectField) FormValues(v []string) error + func (i *SelectField) Initial(r *request.Request, model any, fieldName string) + func (i *SelectField) Scan(src interface{}) error + func (i SelectField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i SelectField) LabelHTML(_ *request.Request, name string, display_text string, tags tags.TagMap) interfaces.Element + func (i SelectField) Value() (driver.Value, error) + type SliceField []T + func (i *SliceField[T]) FormValues(v []string) error + func (i *SliceField[T]) Initial(r *request.Request, model any, fieldName string) + func (i *SliceField[T]) Scan(src interface{}) error + func (i SliceField[T]) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i SliceField[T]) LabelHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i SliceField[T]) Value() (driver.Value, error) + type StringField string + func (i *StringField) FormValues(v []string) error + func (i *StringField) Scan(src interface{}) error + func (i StringField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i StringField) LabelHTML(_ *request.Request, name string, display_text string, tags tags.TagMap) interfaces.Element + func (i StringField) Value() (driver.Value, error) + type TextField string + func (i *TextField) FormValues(v []string) error + func (i *TextField) Scan(src interface{}) error + func (i TextField) InputHTML(_ *request.Request, name string, tags tags.TagMap) interfaces.Element + func (i TextField) LabelHTML(_ *request.Request, name string, display_text string, tags tags.TagMap) interfaces.Element + func (i TextField) Value() (driver.Value, error)