Toggle checkbox
The checkbox with the renderType checkboxToggle renders as one or several toggle switches. As opposed to the Labeled toggle checkbox no additional labels for the states can be defined.
Its state can be inverted via invert
.
Examples
Example: Single checkbox with toggle
[
'columns' => [
'checkbox_17' => [
'label' => 'checkbox_17',
'description' => 'renderType=checkboxToggle single',
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
'items' => [
[
'label' => 'foo',
],
],
],
],
],
]
Copied!
checkbox
: Instead of checkboxes, a toggle item is displayed.
Example: Single checkbox with toggle inverted state display
[
'columns' => [
'checkbox_18' => [
'label' => 'checkbox_18',
'description' => 'renderType=checkboxToggle single inverted state display',
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
'items' => [
[
'label' => 'foo',
'invertStateDisplay' => true,
],
],
],
],
],
]
Copied!
inverted
: A checkbox is marked checked if the database bit is
not set and vice versa.