FormField
This component is designed to group elements related to one field in the container, e.g. label and text input. FormField
can function as an element of a FormGroup
.
FormFieldBosons
Template
Template for elements inside.
type:
string
default:
vertical
values:
vertical, horizontal, radio, toggle, checkbox
Attrs
Sets attributes in the html tag.
type:
gopress.Attrs
Examples
Standard input in FormField
1// Basic example
2
3@atoms.FormField(&atoms.FormFieldBosons{}) {
4 @atoms.FormInputField(&atoms.FormInputFieldBosons{}) {
5 @atoms.FormInput(&atoms.FormInputBosons{})
6 }
7}