Example

Select multiple values from a box

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_select.php
[
    'columns' => [
        'select_singlebox_1' => [
            'exclude' => 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,
                    ],
                ],
            ],
        ],
    ],
]
Copied!