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 information

  • 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):
    • hideWhen (optional):