checkboxgroup

These components generate a list of elements of the component Checkbox.

Configuration

For general configuration options, see General component configuration.

Specific configuration

type ("checkboxgroup")

Type of component.

components (array<Checkbox>)

List of elements of the component Checkbox.

General configuration

In addition to the configurations valid for all Configurationsthe following configurations can optionally be set: disabled, icon, labels, label settings, required.

Example

checkboxgroup.json
{
  "$schema": "https://forms.virtimo.net/5.1.0/schema.json",
  "metaData": {
    "id": 0,
    "version": 0
  },
  "configuration": {},
  "components": [
    {
      "type": "container",
      "label": "Checkboxgroup Component Example",
      "components": [
        {
          "type": "checkboxgroup",
          "label": "checkbox group",
          "components": [
            {
              "value": "${/data/checkboxGroup/one}",
              "type": "checkbox",
              "label": "one"
            },
            {
              "value": "${/data/checkboxGroup/two}",
              "type": "checkbox",
              "label": "two"
            },
            {
              "value": "${/data/checkboxGroup/three}",
              "type": "checkbox",
              "label": "three"
            }
          ]
        }
      ]
    }
  ],
  "state": {
    "data": {
      "checkboxGroup": {
        "one": true,
        "two": false,
        "three": true
      }
    }
  }
}
Embedded preview

Keywords: