Versions in this module Expand all Collapse all v1 v1.6.8 Nov 12, 2024 v1.6.7 Nov 6, 2024 Changes in this version + type BaseChooser struct + Opts BaseChooserOptions + func BaseChooserWidget(opts BaseChooserOptions) *BaseChooser + func (o *BaseChooser) QuerySet() ([]interface{}, error) + func (o *BaseChooser) Validate(value interface{}) []error + type BaseChooserOptions struct + GetPrimaryKey func(interface{}) interface{} + Queryset func() ([]interface{}, error) + TargetObject interface{} + type Select struct + BlankLabel string + ExcludeBlank bool + func SelectWidget(allowBlank bool, blankLabel string, opts BaseChooserOptions) *Select + func (b *Select) Render(w io.Writer, id, name string, value interface{}, attrs map[string]string) error + func (b *Select) RenderWithErrors(w io.Writer, id, name string, value interface{}, errors []error, ...) error + func (o *Select) GetContextData(id, name string, value interface{}, widgetAttrs map[string]string) ctx.Context + func (o *Select) ValueToForm(value interface{}) interface{}