package
0.0.0-20250210154908-aff261b4e5c5
Repository: https://github.com/acaloiaro/frm.git
Documentation: pkg.go.dev
# Functions
FieldLabel is a HTML label for a field.
FieldName generates the HTML form field name for form fileds.
FieldsAsSelector returns all of a form's fields as selector.Options to be used in a selector.Selector dropdown fieldID is the ID of the field for which the options are being rendered.
No description provided by the author
FormFieldTypeLabel is the UI label for FormFieldTypes, e.g.
RequiredFieldIndicator visually indicates that a field is required.
SingleChoice is a form input type allowing only a ingle option to be chosen.
Sort form fields by Order.
ToSelectorOpts converts a slices of types.Option to a slice of selector.Option.
ToSelectorOptsStr converts a slices of types.Option to a slice of selector.Option.
View displays fields with the appropriate UI component.