FormInput
Basic element in forms.
FormInputBosons
Autocomplete
Autocomplete on/off.
type:
stringdefault:
offvalues:
on,offSize
Size of input.
type:
stringdefault:
mdvalues:
sm, md, lgType
Input type.
type:
stringdefault:
textAttrs
Sets attributes in the html tag.
type:
hanariu.AttrsFormInputFieldBosons
Error
Is there any error.
type:
booldefault:
falseAttrs
Sets attributes in the html tag.
type:
hanariu.AttrsExamples
Standard input
1// Standard input
2
3@atoms.FormInputField(&atoms.FormInputFieldBosons{}) {
4 @atoms.FormInput(&atoms.FormInputBosons{})
5}Large size with error
1// Large size with error
2
3@atoms.FormInputField(&atoms.FormInputFieldBosons{
4 Error: true,
5}) {
6 @atoms.FormInput(&atoms.FormInputBosons{
7 Size: "lg",
8 })
9}