Form Helpers
components for building forms backed by Golang dataHTML input template helpers. You’ll need to import views/components
at the top of your template.
The component that renders a normal HTML input field is named FormInput
.
For each component, alternate version or available, such as TableInput
for table-based form fields, and FormVerticalInput
for a vertical stacked form.
1 |
|
Basic text input, string value
|
Password input, string value (hidden in UI)
|
Integer number input, value can be any scalar type
|
Integer number input, value can be any scalar type
|
Date and time input, value is *time.Time
|
Date input (no time component), value is *time.Time
|
UUID input, *uuid.UUID value
|
Multi-line text input via HTML textarea, string value
|
X input, string value
|
Single-choice select, string value, accepts []string for options and titles
|
Autocompleted text input, string value, accepts []string for options and titles, allows all inputs
|
Single-choice radio inputs, string value, accepts []string for options and titles
|
Multiple-choice checkbox inputs, []string values, accepts []string for options and titles
|