FormValid
Component showing validation messages under inputs. Displays the returned error or optionally a message related to the validity of the value.
FormValidBosons
Error
Text of error message.
type:
string
Info
IText of info message.
type:
string
Examples
Input with info
This email will be using by us
1// Input with info
2
3@atoms.FormField(&atoms.FormFieldBosons{}) {
4 @atoms.FormLabel(&atoms.FormLabelBosons{Text: "Email:"})
5 @atoms.FormInputField(&atoms.FormInputFieldBosons{}) {
6 @atoms.FormInput(&atoms.FormInputBosons{})
7 }
8 @atoms.FormValid(&atoms.FormValidBosons{Info: "This email will be using by us"})
9}
Input with error
Please, give us mail
1// Input with error
2
3@atoms.FormField(&atoms.FormFieldBosons{}) {
4 @atoms.FormLabel(&atoms.FormLabelBosons{Text: "Email:"})
5 @atoms.FormInputField(&atoms.FormInputFieldBosons{Error: true}) {
6 @atoms.FormInput(&atoms.FormInputBosons{})
7 }
8 @atoms.FormValid(&atoms.FormValidBosons{Info: "This email will be using by us", Error: "Please, give us mail"})
9}