appearance - selectCheckBox

appearance > selectCheckBox
Path

$GLOBALS['TCA'][$table]['columns'][$field]['config']

type

array

Scope

Display

RenderType

selectCheckBox

Options for refining the appearance of selectCheckBox fields.

expandAll (boolean)
If set, all select groups are initially expanded.

Select checkbox, all divs expanded

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_select.php
[
    'columns' => [
        'select_checkbox_5' => [
            'exclude' => 1,
            'label' => 'select_checkbox_5 dividers, expandAll',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectCheckBox',
                'appearance' => [
                    'expandAll' => true,
                ],
                'items' => [
                    [
                        'div 1',
                        '--div--',
                    ],
                    [
                        'foo 1',
                        1,
                    ],
                    [
                        'foo 2',
                        2,
                    ],
                    [
                        'foo 3',
                        3,
                    ],
                    [
                        'div 2',
                        '--div--',
                    ],
                    [
                        'foo 4',
                        4,
                    ],
                    [
                        'foo 5',
                        5,
                    ],
                ],
            ],
        ],
    ],
]
Copied!