Documentation
¶
Index ¶
- func UseAll()
- type CheckButton
- func (widget CheckButton) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget CheckButton) Encoding(_ *form.Element) string
- func (widget CheckButton) ShowDescriptions() string
- func (widget CheckButton) ShowLabels() bool
- func (widget CheckButton) View(_ *form.Form, _ *form.Element, _ form.LookupProvider, _ any, _ *html.Builder) error
- type CheckButtonGroup
- func (widget CheckButtonGroup) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget CheckButtonGroup) Encoding(_ *form.Element) string
- func (widget CheckButtonGroup) ShowDescriptions() string
- func (widget CheckButtonGroup) ShowLabels() bool
- func (widget CheckButtonGroup) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type Checkbox
- func (widget Checkbox) Edit(form *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget Checkbox) Encoding(_ *form.Element) string
- func (widget Checkbox) ShowDescriptions() string
- func (widget Checkbox) ShowLabels() bool
- func (widget Checkbox) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type Colorpicker
- func (widget Colorpicker) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget Colorpicker) Encoding(_ *form.Element) string
- func (widget Colorpicker) ShowDescriptions() string
- func (widget Colorpicker) ShowLabels() bool
- func (widget Colorpicker) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type Container
- func (Container) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget Container) Encoding(element *form.Element) string
- func (widget Container) ShowDescriptions() string
- func (Container) ShowLabels() bool
- func (Container) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type DatePicker
- func (widget DatePicker) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget DatePicker) Encoding(_ *form.Element) string
- func (widget DatePicker) ShowDescriptions() string
- func (widget DatePicker) ShowLabels() bool
- func (widget DatePicker) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type DateTimePicker
- func (widget DateTimePicker) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget DateTimePicker) Encoding(_ *form.Element) string
- func (widget DateTimePicker) ShowDescriptions() string
- func (widget DateTimePicker) ShowLabels() bool
- func (widget DateTimePicker) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type HTML
- func (widget HTML) Edit(_ *form.Form, e *form.Element, _ form.LookupProvider, _ any, b *html.Builder) error
- func (widget HTML) Encoding(_ *form.Element) string
- func (widget HTML) ShowDescriptions() string
- func (widget HTML) ShowLabels() bool
- func (widget HTML) View(_ *form.Form, e *form.Element, _ form.LookupProvider, _ any, b *html.Builder) error
- type HTMLRemote
- func (widget HTMLRemote) Edit(_ *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget HTMLRemote) Encoding(_ *form.Element) string
- func (widget HTMLRemote) ShowDescriptions() string
- func (widget HTMLRemote) ShowLabels() bool
- func (widget HTMLRemote) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type Heading
- func (widget Heading) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget Heading) Encoding(_ *form.Element) string
- func (widget Heading) ShowDescriptions() string
- func (widget Heading) ShowLabels() bool
- func (widget Heading) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type Hidden
- func (widget Hidden) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget Hidden) Encoding(_ *form.Element) string
- func (widget Hidden) ShowDescriptions() string
- func (widget Hidden) ShowLabels() bool
- func (widget Hidden) View(_ *form.Form, _ *form.Element, _ form.LookupProvider, _ any, _ *html.Builder) error
- type Label
- func (widget Label) Edit(_ *form.Form, e *form.Element, _ form.LookupProvider, _ any, b *html.Builder) error
- func (widget Label) Encoding(_ *form.Element) string
- func (widget Label) ShowDescriptions() string
- func (widget Label) ShowLabels() bool
- func (widget Label) View(_ *form.Form, e *form.Element, _ form.LookupProvider, _ any, b *html.Builder) error
- type LayoutGroup
- func (LayoutGroup) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget LayoutGroup) Encoding(element *form.Element) string
- func (widget LayoutGroup) ShowDescriptions() string
- func (LayoutGroup) ShowLabels() bool
- func (LayoutGroup) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type LayoutHorizontal
- func (widget LayoutHorizontal) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget LayoutHorizontal) Encoding(element *form.Element) string
- func (widget LayoutHorizontal) ShowDescriptions() string
- func (widget LayoutHorizontal) ShowLabels() bool
- func (widget LayoutHorizontal) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type LayoutTabs
- func (widget LayoutTabs) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget LayoutTabs) Encoding(e *form.Element) string
- func (widget LayoutTabs) ShowDescriptions() string
- func (widget LayoutTabs) ShowLabels() bool
- func (widget LayoutTabs) View(_ *form.Form, _ *form.Element, _ form.LookupProvider, _ any, _ *html.Builder) error
- type LayoutVertical
- func (widget LayoutVertical) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget LayoutVertical) Encoding(element *form.Element) string
- func (widget LayoutVertical) ShowDescriptions() string
- func (widget LayoutVertical) ShowLabels() bool
- func (widget LayoutVertical) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type Multiselect
- func (widget Multiselect) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget Multiselect) Encoding(_ *form.Element) string
- func (widget Multiselect) ShowDescriptions() string
- func (widget Multiselect) ShowLabels() bool
- func (widget Multiselect) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type Password
- func (widget Password) Edit(_ *form.Form, e *form.Element, _ form.LookupProvider, _ any, b *html.Builder) error
- func (widget Password) Encoding(_ *form.Element) string
- func (widget Password) ShowDescriptions() string
- func (widget Password) ShowLabels() bool
- func (widget Password) View(_ *form.Form, e *form.Element, _ form.LookupProvider, _ any, b *html.Builder) error
- type Place
- func (widget Place) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget Place) Encoding(_ *form.Element) string
- func (widget Place) SetURLValue(form *form.Form, element *form.Element, object any, values url.Values) error
- func (widget Place) ShowDescriptions() string
- func (widget Place) ShowLabels() bool
- func (widget Place) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type Radio
- func (widget Radio) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget Radio) Encoding(_ *form.Element) string
- func (widget Radio) ShowDescriptions() string
- func (widget Radio) ShowLabels() bool
- func (widget Radio) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type RadioButtonGroup
- func (widget RadioButtonGroup) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget RadioButtonGroup) Encoding(_ *form.Element) string
- func (widget RadioButtonGroup) ShowDescriptions() string
- func (widget RadioButtonGroup) ShowLabels() bool
- func (widget RadioButtonGroup) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type RadioColors
- func (widget RadioColors) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget RadioColors) Encoding(_ *form.Element) string
- func (widget RadioColors) ShowDescriptions() string
- func (widget RadioColors) ShowLabels() bool
- func (widget RadioColors) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type Select
- func (widget Select) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget Select) Encoding(_ *form.Element) string
- func (widget Select) ShowDescriptions() string
- func (widget Select) ShowLabels() bool
- func (widget Select) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type SelectGroup
- func (widget SelectGroup) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget SelectGroup) Encoding(_ *form.Element) string
- func (widget SelectGroup) ShowDescriptions() string
- func (widget SelectGroup) ShowLabels() bool
- func (widget SelectGroup) View(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- type Text
- func (widget Text) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, ...) error
- func (widget Text) Encoding(_ *form.Element) string
- func (widget Text) ShowDescriptions() string
- func (widget Text) ShowLabels() bool
- func (widget Text) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type TextArea
- func (widget TextArea) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget TextArea) Encoding(_ *form.Element) string
- func (widget TextArea) ShowDescriptions() string
- func (widget TextArea) ShowLabels() bool
- func (widget TextArea) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type TimePicker
- func (widget TimePicker) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget TimePicker) Encoding(_ *form.Element) string
- func (widget TimePicker) ShowDescriptions() string
- func (widget TimePicker) ShowLabels() bool
- func (widget TimePicker) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type Toggle
- func (widget Toggle) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget Toggle) Encoding(_ *form.Element) string
- func (widget Toggle) ShowDescriptions() string
- func (widget Toggle) ShowLabels() bool
- func (widget Toggle) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type Upload
- func (widget Upload) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget Upload) Encoding(_ *form.Element) string
- func (widget Upload) ShowDescriptions() string
- func (widget Upload) ShowLabels() bool
- func (widget Upload) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- type WYSIWYG
- func (widget WYSIWYG) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
- func (widget WYSIWYG) Encoding(_ *form.Element) string
- func (widget WYSIWYG) ShowDescriptions() string
- func (widget WYSIWYG) ShowLabels() bool
- func (widget WYSIWYG) View(f *form.Form, e *form.Element, _ form.LookupProvider, value any, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckButton ¶ added in v0.23.5
type CheckButton struct{}
CheckButton renders a fancy checkbox widget that looks like a button
func (CheckButton) Encoding ¶ added in v0.23.5
func (widget CheckButton) Encoding(_ *form.Element) string
func (CheckButton) ShowDescriptions ¶ added in v0.25.12
func (widget CheckButton) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (CheckButton) ShowLabels ¶ added in v0.23.5
func (widget CheckButton) ShowLabels() bool
type CheckButtonGroup ¶ added in v0.23.5
type CheckButtonGroup struct{}
CheckButtonGroup renders a group of fancy checkboxes that look like buttons
func (CheckButtonGroup) Encoding ¶ added in v0.23.5
func (widget CheckButtonGroup) Encoding(_ *form.Element) string
func (CheckButtonGroup) ShowDescriptions ¶ added in v0.25.12
func (widget CheckButtonGroup) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (CheckButtonGroup) ShowLabels ¶ added in v0.23.5
func (widget CheckButtonGroup) ShowLabels() bool
type Checkbox ¶
type Checkbox struct{}
Checkbox is a widget that creates a set of checkbox input fields.
func (Checkbox) Edit ¶
func (widget Checkbox) Edit(form *form.Form, e *form.Element, provider form.LookupProvider, value any, b *html.Builder) error
Edit is a part of the Widget interface. It builds the HTML for editing this element.
func (Checkbox) Encoding ¶
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For Checkbox widgets, there is no special encoding, so this always returns an empty string.
func (Checkbox) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Checkbox) ShowLabels ¶
ShowLabels is a part of the Widget interface. It returns TRUE if this widget requires labels to be displayed around it. For Checkbox widgets, labels are not shown, so this always returns FALSE.
type Colorpicker ¶ added in v0.22.3
type Colorpicker struct{}
Colorpicker is a widget that creates a color picker input field.
func (Colorpicker) Edit ¶ added in v0.22.3
func (widget Colorpicker) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, b *html.Builder) error
Edit generates the HTML for editing a color picker input field.
func (Colorpicker) Encoding ¶ added in v0.22.3
func (widget Colorpicker) Encoding(_ *form.Element) string
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For Colorpicker widgets, there is no special encoding, so this always returns an empty string.
func (Colorpicker) ShowDescriptions ¶ added in v0.25.12
func (widget Colorpicker) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Colorpicker) ShowLabels ¶ added in v0.22.3
func (widget Colorpicker) ShowLabels() bool
ShowLabels is a part of the Widget interface. It returns TRUE if this widget requires labels to be displayed around it. For Colorpicker widgets, labels are shown, so this always returns TRUE.
type Container ¶ added in v0.25.10
type Container struct{}
func (Container) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Container) ShowLabels ¶ added in v0.25.10
type DatePicker ¶ added in v0.21.0
type DatePicker struct{}
func (DatePicker) Encoding ¶ added in v0.21.0
func (widget DatePicker) Encoding(_ *form.Element) string
func (DatePicker) ShowDescriptions ¶ added in v0.25.12
func (widget DatePicker) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (DatePicker) ShowLabels ¶ added in v0.21.0
func (widget DatePicker) ShowLabels() bool
type DateTimePicker ¶ added in v0.22.17
type DateTimePicker struct{}
func (DateTimePicker) Encoding ¶ added in v0.22.17
func (widget DateTimePicker) Encoding(_ *form.Element) string
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For DateTimePicker widgets, there is no special encoding, so this always returns an empty string.
func (DateTimePicker) ShowDescriptions ¶ added in v0.25.12
func (widget DateTimePicker) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (DateTimePicker) ShowLabels ¶ added in v0.22.17
func (widget DateTimePicker) ShowLabels() bool
ShowLabels is a part of the Widget interface. It returns TRUE if this widget requires labels to be displayed around it. For DateTimePicker widgets, labels are shown, so this always returns TRUE.
type HTML ¶ added in v0.22.21
type HTML struct{}
func (HTML) Encoding ¶ added in v0.22.21
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For HTML widgets, there is no special encoding, so this always returns an empty string.
func (HTML) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (HTML) ShowLabels ¶ added in v0.22.21
ShowLabels is a part of the Widget interface. It returns TRUE if this widget requires labels to be displayed around it. For HTML widgets, labels are not shown, so this always returns FALSE.
type HTMLRemote ¶ added in v0.25.0
type HTMLRemote struct{}
func (HTMLRemote) Encoding ¶ added in v0.25.0
func (widget HTMLRemote) Encoding(_ *form.Element) string
Encoding is a part of the Widget interface It returns the encoding type for this widget For HTMLRemote widgets, it always returns empty string
func (HTMLRemote) ShowDescriptions ¶ added in v0.25.12
func (widget HTMLRemote) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (HTMLRemote) ShowLabels ¶ added in v0.25.0
func (widget HTMLRemote) ShowLabels() bool
ShowLabels is a part of the Widget interface It indicates whether or not this widget wants labels to be shown For HTMLRemote widgets, this always returns FALSE
type Heading ¶
type Heading struct{}
func (Heading) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Heading) ShowLabels ¶
type Hidden ¶
type Hidden struct{}
Hidden is a widget that creates a hidden input field.
func (Hidden) Edit ¶
func (widget Hidden) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, b *html.Builder) error
Edit generates the HTML for editing a hidden input field.
func (Hidden) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Hidden) ShowLabels ¶
type Label ¶
type Label struct{}
func (Label) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Label) ShowLabels ¶
type LayoutGroup ¶
type LayoutGroup struct{}
func (LayoutGroup) ShowDescriptions ¶ added in v0.25.12
func (widget LayoutGroup) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (LayoutGroup) ShowLabels ¶
func (LayoutGroup) ShowLabels() bool
type LayoutHorizontal ¶
type LayoutHorizontal struct{}
func (LayoutHorizontal) Encoding ¶
func (widget LayoutHorizontal) Encoding(element *form.Element) string
func (LayoutHorizontal) ShowDescriptions ¶ added in v0.25.12
func (widget LayoutHorizontal) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (LayoutHorizontal) ShowLabels ¶
func (widget LayoutHorizontal) ShowLabels() bool
type LayoutTabs ¶
type LayoutTabs struct{}
func (LayoutTabs) Encoding ¶
func (widget LayoutTabs) Encoding(e *form.Element) string
Encoding is a part of the Widget interface It returns the encoding type for this widget For LayoutTabs widgets, it collects the encodings of all children
func (LayoutTabs) ShowDescriptions ¶ added in v0.25.12
func (widget LayoutTabs) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (LayoutTabs) ShowLabels ¶
func (widget LayoutTabs) ShowLabels() bool
ShowLabels is a part of the Widget interface It indicates whether or not this widget wants labels to be shown For LayoutTabs widgets, this always returns FALSE
type LayoutVertical ¶
type LayoutVertical struct{}
func (LayoutVertical) Encoding ¶
func (widget LayoutVertical) Encoding(element *form.Element) string
func (LayoutVertical) ShowDescriptions ¶ added in v0.25.12
func (widget LayoutVertical) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (LayoutVertical) ShowLabels ¶
func (widget LayoutVertical) ShowLabels() bool
type Multiselect ¶
type Multiselect struct{}
func (Multiselect) Edit ¶
func (widget Multiselect) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, b *html.Builder) error
Multiselect registers a custom multi-select widget into the library
func (Multiselect) Encoding ¶
func (widget Multiselect) Encoding(_ *form.Element) string
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For Multiselect widgets, there is no special encoding, so this always returns an empty string.
func (Multiselect) ShowDescriptions ¶ added in v0.25.12
func (widget Multiselect) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Multiselect) ShowLabels ¶
func (widget Multiselect) ShowLabels() bool
ShowLabels is a part of the Widget interface. It returns TRUE if this widget requires labels to be displayed around it. For Multiselect widgets, labels are shown, so this always returns TRUE.
type Password ¶ added in v0.22.14
type Password struct{}
func (Password) Encoding ¶ added in v0.22.14
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For Password widgets, there is no special encoding, so this always returns an empty string.
func (Password) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Password) ShowLabels ¶ added in v0.22.14
ShowLabels is a part of the Widget interface. It indicates whether labels should be shown for this widget. For Password widgets, labels are shown, so this always returns TRUE.
type Place ¶ added in v0.25.2
type Place struct{}
Place is a form widget that presents an address lookup box. It returns a place name, latitude, and longitude. If an endpoint URL is provided, then this widget will query the server for matching place names.
func (Place) Edit ¶ added in v0.25.2
func (widget Place) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, b *html.Builder) error
Edit is a part of the Widget interface. It builds the HTML for editing this element.
func (Place) Encoding ¶ added in v0.25.2
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For Place widgets, there is no special encoding, so this always returns an empty string.
func (Place) SetURLValue ¶ added in v0.25.2
func (widget Place) SetURLValue(form *form.Form, element *form.Element, object any, values url.Values) error
SetURLValue is a part of the URLValueSetter interface. It applies applies all values from a url.Values slice to the provided object.
func (Place) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Place) ShowLabels ¶ added in v0.25.2
ShowLabels is a part of the Widget interface. It returns TRUE if this widget requires labels to be displayed around it. For Place widgets, labels are shown, so this always returns TRUE.
type Radio ¶
type Radio struct{}
Radio is a widget that displays a list of radio buttons for selecting a single value from a list.
func (Radio) Edit ¶
func (widget Radio) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, b *html.Builder) error
Edit is a part of the Widget interface. It builds the HTML for editing this element.
func (Radio) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Radio) ShowLabels ¶
type RadioButtonGroup ¶ added in v0.25.11
type RadioButtonGroup struct{}
RadioButtonGroup renders a group of fancy radio buttons that look like buttons
func (RadioButtonGroup) Encoding ¶ added in v0.25.11
func (widget RadioButtonGroup) Encoding(_ *form.Element) string
func (RadioButtonGroup) ShowDescriptions ¶ added in v0.25.12
func (widget RadioButtonGroup) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (RadioButtonGroup) ShowLabels ¶ added in v0.25.11
func (widget RadioButtonGroup) ShowLabels() bool
type RadioColors ¶ added in v0.25.11
type RadioColors struct{}
RadioColors is a widget that displays a list of radio buttons for selecting a single value from a list.
func (RadioColors) Edit ¶ added in v0.25.11
func (widget RadioColors) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, b *html.Builder) error
Edit is a part of the Widget interface. It builds the HTML for editing this element.
func (RadioColors) Encoding ¶ added in v0.25.11
func (widget RadioColors) Encoding(_ *form.Element) string
func (RadioColors) ShowDescriptions ¶ added in v0.25.12
func (widget RadioColors) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (RadioColors) ShowLabels ¶ added in v0.25.11
func (widget RadioColors) ShowLabels() bool
type Select ¶
type Select struct{}
Select renders a select box widget
func (Select) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Select) ShowLabels ¶
type SelectGroup ¶ added in v0.25.5
type SelectGroup struct{}
SelectGroup renders two linked select boxes
func (SelectGroup) Encoding ¶ added in v0.25.5
func (widget SelectGroup) Encoding(_ *form.Element) string
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For SelectGroup widgets, there is no special encoding, so this always returns an empty string.
func (SelectGroup) ShowDescriptions ¶ added in v0.25.12
func (widget SelectGroup) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (SelectGroup) ShowLabels ¶ added in v0.25.5
func (widget SelectGroup) ShowLabels() bool
ShowLabels is a part of the Widget interface. It returns TRUE if this widget requires labels to be displayed around it. For SelectGroup widgets, labels are shown, so this always returns TRUE.
type Text ¶
type Text struct{}
Text is a widget that creates a text input field.
func (Text) Edit ¶
func (widget Text) Edit(f *form.Form, e *form.Element, provider form.LookupProvider, value any, b *html.Builder) error
Edit generates the HTML for editing a text input field.
func (Text) Encoding ¶
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For Text widgets, there is no special encoding, so this always returns an empty string.
func (Text) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Text) ShowLabels ¶
ShowLabels is a part of the Widget interface. It returns TRUE if this widget requires labels to be displayed around it. For Text widgets, labels are shown, so this always returns TRUE.
type TextArea ¶
type TextArea struct{}
TextArea renders a long text <textarea> widget
func (TextArea) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (TextArea) ShowLabels ¶
type TimePicker ¶ added in v0.22.17
type TimePicker struct{}
func (TimePicker) Encoding ¶ added in v0.22.17
func (widget TimePicker) Encoding(_ *form.Element) string
func (TimePicker) ShowDescriptions ¶ added in v0.25.12
func (widget TimePicker) ShowDescriptions() string
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (TimePicker) ShowLabels ¶ added in v0.22.17
func (widget TimePicker) ShowLabels() bool
type Toggle ¶
type Toggle struct{}
Toggle renders a custom toggle widget
func (Toggle) Edit ¶
func (widget Toggle) Edit(f *form.Form, e *form.Element, _ form.LookupProvider, value any, b *html.Builder) error
Edit generates the HTML for editing a toggle widget.
func (Toggle) Encoding ¶
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For Toggle widgets, there is no special encoding, so this always returns an empty string.
func (Toggle) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Toggle) ShowLabels ¶
ShowLabels is a part of the Widget interface. It returns TRUE if this widget requires labels to be displayed around it. For Toggle widgets, labels are shown, so this always returns TRUE.
type Upload ¶
type Upload struct{}
func (Upload) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (Upload) ShowLabels ¶
type WYSIWYG ¶
type WYSIWYG struct{}
func (WYSIWYG) Encoding ¶
Encoding is a part of the Widget interface. It returns the encoding type for this widget. For WYSIWYG widgets, there is no special encoding, so this always returns an empty string.
func (WYSIWYG) ShowDescriptions ¶ added in v0.25.12
ShowDescriptions is a part of the Widget interface. It returns the position of the description for this widget, which is either "TOP", "BOTTOM", or "NONE".
func (WYSIWYG) ShowLabels ¶
ShowLabels is a part of the Widget interface. It returns TRUE if this widget requires labels to be displayed around it. For WYSIWYG widgets, labels are shown, so this always returns TRUE.
Source Files
¶
- checkbox.go
- checkbutton-group.go
- checkbutton.go
- colorpicker.go
- container.go
- datepicker.go
- datetimepicker.go
- heading.go
- hidden.go
- html-remote.go
- html.go
- interfaces.go
- label.go
- layout-group.go
- layout-horizontal.go
- layout-tabs.go
- layout-vertical.go
- layout.go
- multiselect.go
- password.go
- place.go
- radio-colors.go
- radio.go
- radiobutton-group.go
- select-group.go
- select.go
- text.go
- textarea.go
- timepicker.go
- toggle.go
- upload.go
- utils.go
- utils_icons.go
- widget.go
- wysiwyg.go