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¶
'checkbox_16' => [
'exclude' => 1,
'label' => 'checkbox_16 cols=inline',
'config' => [
'type' => 'check',
'items' => [
'0' => [
'0' => 'Mo',
'1' => '',
],
'1' => [
'0' => 'Tu',
'1' => '',
],
'2' => [
'0' => 'We',
'1' => '',
],
'3' => [
'0' => 'Th',
'1' => '',
],
'4' => [
'0' => 'Fr',
'1' => '',
],
'5' => [
'0' => 'Sa',
'1' => '',
],
'6' => [
'0' => 'Su',
'1' => '',
],
],
'cols' => 'inline',
],
],
// Example from extension "styleguide", table "tx_styleguide_elements_basic"