Checkbox¶
Check boxes form a group of which multiple options can be selected.
Tag¶
"type": "checkbox"
Values¶
The checkbox type supports the following values:
options
¶
An array of options of which a user can choose multiple from.
Argument Passed to the Device¶
This section describes the value (VALUE_FROM_THE_USER
) which will get passed to the device.
Read the Parameters section of the device.execute method for the general structure of the argument.
The value will be and array containing each option which is selected. It will be and empty array if no option is selected.
Example¶
This example shows how this type of option will look in the webapp.
Option configuration¶
{
"name": "Select which movie series you like",
"type": "checkbox",
"id": "checkbox-1",
"values": {
"options": ["Harry Potter", "The Lord of the Rings", "Fast and Furious", "Others"]
}
}
Result¶
passed value:
{
"id": "checkbox-1",
"value": []
}
if for example ‘Harry Potter’ and ‘Others’ would be selected:
{
"id": "checkbox-1",
"value": ["Harry Potter", "Others"]
}