Black Friday offer: 25% OFF any product! Coupon code HAPPYBF25.
The promotion will expire in:
  •  days
  •  Hours
  •  Minutes
  •  Seconds

Displays a toggle button.

type

(string)  Must be equals to checkbox.

label

(string)  The label to display next to the field.

help

(string)  An optional text to describe the purpose of the field.

required

(bool)  Whether the field is mandatory or optional.

default

(bool)  Whether the field should be checked by default or not.

value

(bool)  The last saved checked status.

hidden

(bool)  True to avoid displaying the label of the field.

[
    'toggle' => [
        'type' => 'checkbox',
        'label' => 'Toggle',
        'value' => true,
    ]
]

Changelog

Version Description
1.7.3 Introduced.
Last Update: 2022-03-09 14:35
Helpful?