|
id
|
:any
|
|
|
|
|
name
|
:any
|
HTML name attribute for form submission
|
|
|
|
value
|
:any
|
|
|
|
|
field
|
%FormField{}
|
a form field struct retrieved from the form
|
|
|
|
checked
|
:boolean
|
whether the switch is toggled on
|
false
|
|
|
label
|
:string
|
text label displayed next to the switch
|
|
|
|
size
|
:string
|
|
"md"
|
|
|
color
|
:string
|
|
"primary"
|
|
|
helper
|
:string
|
helper text displayed below the switch
|
|
|
|
errors
|
:list
|
list of error messages to display
|
[]
|
|
|
disabled
|
:boolean
|
|
false
|
|
|
class
|
:any
|
additional CSS classes for the wrapper
|
|
|
|
label_class
|
:any
|
additional CSS classes for the label
|
|
|
|
switch_class
|
:any
|
additional CSS classes for the switch input
|
|
|
|
horizontal
|
:boolean
|
horizontal layout (label beside input)
|
false
|
|
|
state
|
:string
|
validation state (applies form-group-success/warning)
|
|
|
|
multiple
|
:boolean
|
appends [] to the field name for array values
|
false
|
|
|
rest
|
:global
|
|
|
|