toggleControlConfig
Examples
kind: Toggle
value: true
label: My Label
disableWhen: # OPTIONAL
kind: Equal
control: my-other-control1
value: 1
hideWhen: # OPTIONAL
kind: Falsy
control: my-other-control2
Object properties
Name |
Type |
Required |
kind |
Constant: Toggle |
yes |
value |
boolean |
yes |
label |
string |
yes |
disableWhen |
One of |
no |
hideWhen |
One of |
no |
- Object with the following properties:
kind
(required): Constant Toggle
- Toggle is used to input true or false value
value
(required): boolean
- Define the value of the toggle input
label
(required): string
- The label of the toggle input
disableWhen
(optional):
- Disable this control based on another control’s value
- One of the following types:
hideWhen
(optional):
- Hide this control based on another control’s value
- One of the following types: