2018-01-03 20:14:15 -02:00
|
|
|
---
|
2018-10-01 20:00:57 -04:00
|
|
|
title: boolean
|
2018-08-14 11:33:13 -06:00
|
|
|
label: "Boolean"
|
2018-01-03 20:14:15 -02:00
|
|
|
---
|
|
|
|
|
|
|
|
The boolean widget translates a toggle switch input to a true/false value.
|
|
|
|
|
|
|
|
- **Name:** `boolean`
|
|
|
|
- **UI:** toggle switch
|
|
|
|
- **Data type:** boolean
|
|
|
|
- **Options:**
|
|
|
|
- `default`: accepts `true` or `false`; defaults to `false`
|
|
|
|
- **Example:**
|
2018-08-14 07:37:07 -07:00
|
|
|
```yaml
|
2018-08-14 11:33:13 -06:00
|
|
|
- {label: "Draft", name: "draft", widget: "boolean", default: true}
|
2018-08-14 07:37:07 -07:00
|
|
|
```
|