- Name:
boolean
- UI: Toggle switch
- Data type:
boolean
The boolean widget translates a toggle switch input to a true
or false
value.
Widget Options
For common options, see Common widget options.
Name 17389_6474fc-03> |
Type 17389_4b0b7e-99> |
Default 17389_3d42a9-4c> |
Description 17389_5abf25-5b> |
---|---|---|---|
default 17389_a9d1b4-34> |
boolean 17389_1e08cb-03> |
|
Optional. The default value for the field 17389_f410a5-90> |
prefix 17389_c4c9de-f3> |
string 17389_3b3bf1-fa> |
|
Optional. Text to show before toggle switch 17389_01d232-ea> |
suffix 17389_179b82-95> |
string 17389_9090cd-09> |
|
Optional. Text to show after toggle switch 17389_2ef964-07> |
Example
name: draft
label: Draft
widget: boolean
default: true
name: 'draft',
label: 'Draft',
widget: 'boolean',
default: true,