Example

Select multiple values from a box

../../../../_images/SelectSinglebox1.png
EXT:styleguide/Configuration/TCA/tx_styleguide_elements_select.php
[
    'columns' => [
        'select_singlebox_1' => [
            'label' => 'select_singlebox_1 description',
            'description' => 'field description',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectSingleBox',
                'items' => [
                    [
                        'foo 1',
                        1,
                    ],
                    [
                        'foo 2',
                        2,
                    ],
                    [
                        'divider',
                        '--div--',
                    ],
                    [
                        'foo 3',
                        3,
                    ],
                    [
                        'foo 4',
                        4,
                    ],
                ],
            ],
        ],
    ],
]