English (United Kingdom)

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.2.5 Introduced.
Last Update: 2022-03-09
Helpful?
This site uses cookies. By continuing to browse you accept their use. Further information