default

default
Type:integer
Scope:Display / Proc.

Setting the default value of the checkbox(es). As example, value 5 enabled first and third checkbox.

Each bit corresponds to a check box. This is true even if there is only one checkbox which which then maps to bit-0.

Examples

Multiple checkboxes with a default value

../../../../_images/Checkbox16.png
'columns' => [
    'checkbox_16' => [
        'exclude' => 1,
        'label' => 'checkbox_16',
        'description' => 'cols=inline',
        'config' => [
            'type' => 'check',
            'items' => [
                [
                    'Mo',
                    '',
                ],
                [
                    'Tu',
                    '',
                ],
                [
                    'We',
                    '',
                ],
                [
                    'Th',
                    '',
                ],
                [
                    'Fr',
                    '',
                ],
                [
                    'Sa',
                    '',
                ],
                [
                    'Su',
                    '',
                ],
            ],
            'cols' => 'inline',
        ],
    ],
]