Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
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.
![](../../../Images/AutomaticScreenshots/Checkbox17.png)
![](../../../Images/AutomaticScreenshots/Checkbox18.png)
Its state can be inverted via invert
.
Examples
Example: Single checkbox with toggle
![](../../../Images/AutomaticScreenshots/Checkbox17.png)
[
'columns' => [
'checkbox_17' => [
'exclude' => 1,
'label' => 'checkbox_17',
'description' => 'renderType=checkboxToggle single',
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
'items' => [
[
0 => 'foo',
'labelChecked' => 'Enabled',
'labelUnchecked' => 'Disabled',
],
],
],
],
],
]
checkbox
: Instead of checkboxes, a toggle item is displayed.
Example: Single checkbox with toggle inverted state display
![](../../../Images/AutomaticScreenshots/Checkbox18.png)
[
'columns' => [
'checkbox_18' => [
'exclude' => 1,
'label' => 'checkbox_18',
'description' => 'renderType=checkboxToggle single inverted state display',
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
'items' => [
[
0 => 'foo',
'labelChecked' => 'Enabled',
'labelUnchecked' => 'Disabled',
'invertStateDisplay' => true,
],
],
],
],
],
]
inverted
: A checkbox is marked checked if the database bit is
not set and vice versa.