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 groups

The select checkbox stores the values as comma separated values.

      'select_checkbox_7' => [ 
         'exclude' => 1,
         'label' => 'select_checkbox_7',
         'description' => 'itemGroups',
         'config' => [ 
            'type' => 'select',
            'renderType' => 'selectCheckBox',
            'items' => [ 
               '0' => [ 
                  '0' => 'foo 1',
                  '1' => 1,
                  '2' => '',
                  '3' => 'group1',
               ],
               '1' => [ 
                  '0' => 'foo 2',
                  '1' => 2,
                  '2' => 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg',
                  '3' => 'group1',
               ],
               '2' => [ 
                  '0' => 'foo 3',
                  '1' => 3,
                  '2' => 'EXT:styleguide/Resources/Public/Icons/tx_styleguide.svg',
               ],
               '3' => [ 
                  '0' => 'foo 4',
                  '1' => 4,
               ],
               '4' => [ 
                  '0' => 'foo 5',
                  '1' => 1,
                  '2' => '',
                  '3' => 'group3',
               ],
            ],
            'itemGroups' => [ 
               'group1' => 'Group 1 with items',
               'group2' => 'Group 2 with no items',
               'group3' => 'Group 3 with items',
            ],
         ],
      ],
      // Example from extension "styleguide", table "tx_styleguide_elements_select"