Examples

Example: Single checkbox with toggle

      'checkbox_17' => [ 
         'exclude' => 1,
         'label' => 'checkbox_17',
         'description' => 'renderType=checkboxToggle single',
         'config' => [ 
            'type' => 'check',
            'renderType' => 'checkboxToggle',
            'items' => [ 
               '0' => [ 
                  '0' => 'foo',
                  '1' => '',
                  'labelChecked' => 'Enabled',
                  'labelUnchecked' => 'Disabled',
               ],
            ],
         ],
      ],
      // Example from extension "styleguide", table "tx_styleguide_elements_basic"

checkboxToggle: Instead of checkboxes, a toggle item is displayed.

Example: Single checkbox with toggle inverted state display

      'checkbox_18' => [ 
         'exclude' => 1,
         'label' => 'checkbox_18',
         'description' => 'renderType=checkboxToggle single inverted state display',
         'config' => [ 
            'type' => 'check',
            'renderType' => 'checkboxToggle',
            'items' => [ 
               '0' => [ 
                  '0' => 'foo',
                  '1' => '',
                  'labelChecked' => 'Enabled',
                  'labelUnchecked' => 'Disabled',
                  'invertStateDisplay' => true,
               ],
            ],
         ],
      ],
      // Example from extension "styleguide", table "tx_styleguide_elements_basic"

invertedStateDisplay: A checkbox is marked checked if the database bit is not set and vice versa.