Examples

Single checkbox with labeled toggle

../../../../_images/Checkbox19.png
'columns' => [
    'checkbox_19' => [
        'exclude' => 1,
        'label' => 'checkbox_19',
        'description' => 'renderType=checkboxLabeledToggle single',
        'config' => [
            'type' => 'check',
            'renderType' => 'checkboxLabeledToggle',
            'items' => [
                [
                    0 => 'foo',
                    1 => '',
                    'labelChecked' => 'Enabled',
                    'labelUnchecked' => 'Disabled',
                ],
            ],
        ],
    ],
]

Single checkbox with labeled toggle inverted state display

../../../../_images/Checkbox21.png
'columns' => [
    'checkbox_21' => [
        'exclude' => 1,
        'label' => 'checkbox_21',
        'description' => 'renderType=checkboxLabeledToggle single inverted state display',
        'config' => [
            'type' => 'check',
            'renderType' => 'checkboxLabeledToggle',
            'items' => [
                [
                    0 => 'foo',
                    1 => '',
                    'labelChecked' => 'Enabled',
                    'labelUnchecked' => 'Disabled',
                    'invertStateDisplay' => true,
                ],
            ],
        ],
    ],
]