selectCheckBox

This page describes the select type with renderType=’selectCheckBox’.

../../../../_images/SelectCheckbox7.png

The select checkbox stores the values as comma separated values.

'columns' => [
    'select_checkbox_7' => [
        'exclude' => 1,
        'label' => 'select_checkbox_7',
        'description' => 'itemGroups',
        'config' => [
            'type' => 'select',
            'renderType' => 'selectCheckBox',
            'items' => [
                [
                    'foo 1',
                    1,
                    '',
                    'group1',
                ],
                [
                    'foo 2',
                    2,
                    'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg',
                    'group1',
                ],
                [
                    'foo 3',
                    3,
                    'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg',
                ],
                [
                    'foo 4',
                    4,
                ],
                [
                    'foo 5',
                    1,
                    '',
                    'group3',
                ],
            ],
            'itemGroups' => [
                'group1' => 'Group 1 with items',
                'group2' => 'Group 2 with no items',
                'group3' => 'Group 3 with items',
            ],
        ],
    ],
]

The field in the database is of type text or varchar.