Checkbox
Description
- Class for this input:
Berlioz\Form\Type\Checkbox - HTML equivalent:
<input type="checkbox">
Additional options
All commons options, and:
| Name | Type | Default value | Description |
|---|---|---|---|
| default_value | string | “on” | Default value for input value |
| checked_value | mixed | true | Value for checked input |
| unchecked_value | mixed | true | Value for unchecked input |
Attributes
List of attributes that interact with the forms library:
| Name | Type | Default value | Description |
|---|---|---|---|
| checked | boolean | none | If checkbox is checked |