20 lines
397 B
Markdown
20 lines
397 B
Markdown
|
---
|
||
|
label: "Boolean"
|
||
|
target: "boolean"
|
||
|
type: "widget"
|
||
|
---
|
||
|
|
||
|
### Boolean
|
||
|
|
||
|
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:**
|
||
|
|
||
|
```yaml
|
||
|
- {label: "Draft", name: "draft", widget: "boolean", default: true}
|
||
|
```
|