ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
24 lines (17 loc) • 845 B
Markdown
title: boolean
subtitle: Switch
type: Widgets
Switching Selector.
## API
### schema
| Property | Description | Type | Default |
| ------------ | ---------------------------- | --------- | ------- |
| `[readOnly]` | Whether to disable the state | `boolean` | - |
### ui
| Property | Description | Type | Default |
| --------------------- | ----------------------------------------------- | --------------- | --------- |
| `[size]` | Size of the `nz-switch` | `default,small` | `default` |
| `[checkedChildren]` | Content to be shown when the state is checked | `string` | - |
| `[unCheckedChildren]` | Content to be shown when the state is unchecked | `string` | - |