Examples¶
Simple select checkbox with 3 possible values¶
The select checkbox stores the values as comma separated values.
'select_checkbox_1' => [
'exclude' => 1,
'label' => 'select_checkbox_1 description',
'description' => 'field description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
'items' => [
'0' => [
'0' => 'foo 1',
'1' => 1,
],
'1' => [
'0' => 'foo 2',
'1' => 2,
],
'2' => [
'0' => 'foo 3',
'1' => 3,
],
],
],
],
// Example from extension "styleguide", table "tx_styleguide_elements_select"
Select checkbox with icons and descriptions¶
The select checkbox stores the values as comma separated values.
'select_checkbox_3' => [
'exclude' => 1,
'label' => 'select_checkbox_3 icons, description',
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
'items' => [
'0' => [
'0' => 'foo 1',
'1' => 1,
'2' => '',
'3' => 'optional description',
],
'1' => [
'0' => 'foo 2',
'1' => 2,
'2' => 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg',
'3' => 'LLL:EXT:styleguide/Resources/Private/Language/locallang.xlf:translatedHelpTextForSelectCheckBox3',
],
'2' => [
'0' => 'foo 3',
'1' => 3,
'2' => 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg',
],
'3' => [
'0' => 'foo 4',
'1' => 4,
],
],
],
],
// Example from extension "styleguide", table "tx_styleguide_elements_select"