Checkbox Element

type = "checkBox"

With this Element you can change the boolean value of a Variable.


Properties

Property
TypeDescriptionExample Value
id
string
The unique id assigned to the Element. This is defined by the user and used to refer to the Element in Layouts.
  "id": "checkBox"
type
string
Type of the Element.
  "type ": "checkBox"

config.label
string
Properties for the label of the CheckBox.config.variable
  "label": "Test Checkbox"

config.variable
string
Properties to assign a variable to the CheckBox.
  "variable": "testVar"

config.disabled
boolean
Properties to disable / enable the Checkbox.
  "disabled": false

config.invertValue
boolean
Properties to invert the value of the variable.
Checkbox is Checked → variable value will be false.
  "invertValue": true


Example

   {
      "id": "checkBox",
      "type": "checkBox",
      "config": {
        "label": "Test Checkbox",
        "variable": "testVar",
        "disabled": false,
        "invertValue": true
      } 
   }