|
id
|
:any
|
|
|
|
|
name
|
:any
|
HTML name attribute for form submission
|
|
|
|
value
|
:any
|
the submitted value when checked
|
"true"
|
|
|
field
|
%FormField{}
|
a form field struct retrieved from the form
|
|
|
|
checked
|
:boolean
|
whether the checkbox is checked; defaults to the field value or false
|
|
|
|
hidden_input
|
:boolean
|
include a hidden false input for unchecked submission
|
true
|
|
|
label
|
:string
|
text label displayed next to the checkbox
|
|
|
|
size
|
:string
|
|
"md"
|
|
|
color
|
:string
|
|
"primary"
|
|
|
helper
|
:string
|
helper text displayed below the checkbox
|
|
|
|
errors
|
:list
|
list of error messages to display
|
[]
|
|
|
disabled
|
:boolean
|
|
false
|
|
|
indeterminate
|
:boolean
|
renders in indeterminate state
|
false
|
|
|
class
|
:any
|
additional CSS classes for the wrapper
|
|
|
|
label_class
|
:any
|
additional CSS classes for the label
|
|
|
|
checkbox_class
|
:any
|
additional CSS classes for the checkbox 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
|
|
|
|