-
Notifications
You must be signed in to change notification settings - Fork 100
Field: Switch
Nadim Tuhin edited this page Oct 12, 2015
·
2 revisions
In onepager, we have programmed innumerous options, some of the options runs with boolean value. To deal with the boolean option, we enabled Switch field, so that you can easily switch between true and false based option easily.
Preview
Name | Type | Default | Description |
---|---|---|---|
type | string | switch | This Value identifies the field type |
name | string | A unique name required to define | |
label | string | Displays as field label | |
value | boolean | boolean that appears as default True or False |
array(
'name' => 'title', // Required
'type' => 'switch',
'label' => 'Title', // Optional, name will use instead
'value' => true // Default value `false`
),