Skip to content

BooleanToggleSwitch

boolean

Description

Shows a toggle switch to set true or false.

Attributes

  • default
  • $capture.input: render the control from this options check | toggle | radio
  • controlAffinity: mobile (flutter only). Where to place the toggle button, trailing or leading, default to leading.

Example

{
  "type": "boolean",
  "$capture": {
    "as": "boolean",
    "input": "radio"
  },
  "$display": {},
  "title": "Test boolean",
  "controlAffinity": "trailing"
}