New online demos available.  

Checkbox

A simple widget which adds a checkbox.

General info

  • type: checkbox

Params

  • prompt - a text string displaying the checkbox caption.
  • value or _ - a checkbox value, whether it is checked (false if omitted).

Example

Let's assume you want to add a checkbox which should lock the FinishButton when it is not set. The config may look as follows.

{
    "widgets": [
        {
            "name": "agree-checkbox",
            "type": "checkbox",
            "params": {
                "prompt": "I approve the design.",
                "value": true
            }
        },
        {
            "name": "finish-button",
            "type": "finish-button",
            "params": {
                "enabled": "{{$['agree-checkbox']._}}"
            }
        }

    ]
}