Examples

Simple select drop down with static and database values

      'select_single_3' => [ 
         'exclude' => 1,
         'label' => 'select_single_3 static values, dividers, foreign_table_where',
         'config' => [ 
            'type' => 'select',
            'renderType' => 'selectSingle',
            'items' => [ 
               '0' => [ 
                  '0' => 'Static values',
                  '1' => '--div--',
               ],
               '1' => [ 
                  '0' => 'static -2',
                  '1' => -2,
               ],
               '2' => [ 
                  '0' => 'static -1',
                  '1' => -1,
               ],
               '3' => [ 
                  '0' => 'DB values',
                  '1' => '--div--',
               ],
            ],
            'foreign_table' => 'tx_styleguide_staticdata',
            'foreign_table_where' => 'AND {#tx_styleguide_staticdata}.{#value_1} LIKE \'%foo%\' ORDER BY uid',
            'foreign_table_prefix' => 'A prefix: ',
         ],
      ],
      // Example from extension "styleguide", table "tx_styleguide_elements_select"

Select foreign rows with icons

      'select_single_12' => [ 
         'exclude' => 1,
         'label' => 'select_single_12 foreign_table selicon_field',
         'config' => [ 
            'type' => 'select',
            'renderType' => 'selectSingle',
            'foreign_table' => 'tx_styleguide_elements_select_single_12_foreign',
            'fieldWizard' => [ 
               'selectIcons' => [ 
                  'disabled' => false,
               ],
            ],
         ],
      ],
      // Example from extension "styleguide", table "tx_styleguide_elements_select"

Select a single value from a list of elements

      'select_single_10' => [ 
         'exclude' => 1,
         'label' => 'select_single_10 size=6, three options',
         'config' => [ 
            'type' => 'select',
            'renderType' => 'selectSingle',
            'items' => [ 
               '0' => [ 
                  '0' => 'foo 1',
                  '1' => 1,
               ],
               '1' => [ 
                  '0' => 'foo 2',
                  '1' => 2,
               ],
               '2' => [ 
                  '0' => 'a divider',
                  '1' => '--div--',
               ],
               '3' => [ 
                  '0' => 'foo 3',
                  '1' => 3,
               ],
            ],
            'size' => 6,
         ],
      ],
      // Example from extension "styleguide", table "tx_styleguide_elements_select"