Examples

Single checkbox with labeled toggle

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

Single checkbox with labeled toggle inverted state display

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