invertStateDisplay¶
- invertStateDisplay¶
- Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']
- Type
boolean
- Scope
Display
- Default
false
The state of a checkbox can be displayed inverted when this property is set to true.
Example¶
Toggle checkbox with invertStateDisplay¶

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_basic.php¶
[
'columns' => [
'checkbox_18' => [
'label' => 'checkbox_18',
'description' => 'renderType=checkboxToggle single inverted state display',
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
'items' => [
[
'label' => 'foo',
'invertStateDisplay' => true,
],
],
],
],
],
]