Versions in this module Expand all Collapse all v0 v0.1.0 Apr 18, 2026 Changes in this version + func ModelFormSetFactory(modelInstance any, includes, excludes []string, extra int) func() *BaseFormSet + type BaseField struct + HelpTextStr string + IsRequired bool + LabelStr string + WidgetField Widget + func (f *BaseField) HelpText() string + func (f *BaseField) Label() string + func (f *BaseField) Required() bool + func (f *BaseField) SetWidget(w Widget) + func (f *BaseField) Widget() Widget + type BaseFormSet struct + Data map[string]any + Errors []FormErrors + Files map[string][]*multipart.FileHeader + FormFactory func() *Form + Forms []*Form + InitialFormCount int + IsBound bool + MaxNum int + Prefix string + TotalFormCount int + func NewBaseFormSet(factory func() *Form, prefix string, total, initial, maxNum int) *BaseFormSet + func (fs *BaseFormSet) Bind(data map[string]any, files map[string][]*multipart.FileHeader) + func (fs *BaseFormSet) IsValid() bool + type BaseWidget struct + Attrs map[string]string + Media *Media + func (w *BaseWidget) GetMedia() *Media + type BooleanField struct + func (f *BooleanField) Clean(value any) (any, error) + type CharField struct + MaxLength int + MinLength int + Strip bool + func (f *CharField) Clean(value any) (any, error) + type CheckboxInput struct + func NewCheckboxInput(attrs map[string]string) *CheckboxInput + func (w *CheckboxInput) Render(name string, value any, attrs map[string]string) template.SafeString + type CheckboxSelectMultiple struct + Choices []Choice + func NewCheckboxSelectMultiple(choices []Choice, attrs map[string]string) *CheckboxSelectMultiple + func (w *CheckboxSelectMultiple) Render(name string, value any, attrs map[string]string) template.SafeString + type Choice struct + Label string + Value string + type ChoiceField struct + Choices []Choice + func (f *ChoiceField) Clean(value any) (any, error) + type DateField struct + func (f *DateField) Clean(value any) (any, error) + type EmailField struct + func (f *EmailField) Clean(value any) (any, error) + type Field interface + Clean func(value any) (any, error) + HelpText func() string + Label func() string + Required func() bool + SetWidget func(w Widget) + Widget func() Widget + type FileField struct + AllowedTypes []string + MaxBytes int64 + func (f *FileField) Clean(value any) (any, error) + type FloatField struct + func (f *FloatField) Clean(value any) (any, error) + type Form struct + CleanedData map[string]any + Data map[string]any + Errors FormErrors + Fields map[string]Field + Files map[string][]*multipart.FileHeader + IsBound bool + Order []string + func NewForm(fields map[string]Field, order []string) *Form + func (f *Form) Bind(data map[string]any, files map[string][]*multipart.FileHeader) + func (f *Form) Clean() error + func (f *Form) IsValid() bool + func (f *Form) Media() *Media + func (f *Form) NonFieldErrors() []string + func (f *Form) Render() template.SafeString + func (f *Form) RenderTable() template.SafeString + type FormErrors map[string][]string + type ImageField struct + func (f *ImageField) Clean(value any) (any, error) + type Input struct + InputType string + func NewClearableFileInput(attrs map[string]string) *Input + func NewDateInput(attrs map[string]string) *Input + func NewDateTimeInput(attrs map[string]string) *Input + func NewEmailInput(attrs map[string]string) *Input + func NewFileInput(attrs map[string]string) *Input + func NewHiddenInput(attrs map[string]string) *Input + func NewNumberInput(attrs map[string]string) *Input + func NewPasswordInput(attrs map[string]string) *Input + func NewTextInput(attrs map[string]string) *Input + func NewTimeInput(attrs map[string]string) *Input + func NewURLInput(attrs map[string]string) *Input + func (w *Input) Render(name string, value any, attrs map[string]string) template.SafeString + type IntegerField struct + func (f *IntegerField) Clean(value any) (any, error) + type Media struct + CSS map[string][]string + JS []string + func NewMedia() *Media + func (m *Media) Merge(other *Media) + func (m *Media) Render() template.SafeString + func (m *Media) RenderCSS() template.SafeString + func (m *Media) RenderJS() template.SafeString + type ModelForm struct + Excludes []string + Includes []string + Instance any + ModelType reflect.Type + func NewModelForm(modelInstance any, includes, excludes []string) (*ModelForm, error) + func (mf *ModelForm) Save(commit bool) (any, error) + type MultipleChoiceField struct + Choices []Choice + func (f *MultipleChoiceField) Clean(value any) (any, error) + type RadioSelect struct + func NewRadioSelect(choices []Choice, attrs map[string]string) *RadioSelect + func (w *RadioSelect) Render(name string, value any, attrs map[string]string) template.SafeString + type Select struct + Choices []Choice + func NewNullBooleanSelect(attrs map[string]string) *Select + func NewSelect(choices []Choice, attrs map[string]string) *Select + func (w *Select) Render(name string, value any, attrs map[string]string) template.SafeString + type SelectMultiple struct + func NewSelectMultiple(choices []Choice, attrs map[string]string) *SelectMultiple + type SlugField struct + func (f *SlugField) Clean(value any) (any, error) + type SplitDateTimeWidget struct + DateWidget Widget + TimeWidget Widget + func NewSplitDateTimeWidget(attrs map[string]string) *SplitDateTimeWidget + func (w *SplitDateTimeWidget) Render(name string, value any, attrs map[string]string) template.SafeString + type Textarea struct + func NewTextarea(attrs map[string]string) *Textarea + func (w *Textarea) Render(name string, value any, attrs map[string]string) template.SafeString + type URLField struct + func (f *URLField) Clean(value any) (any, error) + type Widget interface + GetMedia func() *Media + Render func(name string, value any, attrs map[string]string) template.SafeString