invertStateDisplay¶
-
invertStateDisplay
¶ -
- Type
- boolean
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']
- 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¶
[
'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,
],
],
],
],
],
]
Copied!