To create a picker GUI component, the following is defined in driver.flow.compose.json:
"actions": [
{
"id": "change_measure_my_picker_dir",
"title": {
"en": "Verander richting"
},
"args": [
{
"name": "dropdown_richting",
"type": "dropdown",
"values": [
{
"id": "Auto",
"label": {
"en": "naar Auto"
}
},
{
"id": "Buiten",
"label": {
"en": "naar Buiten"
}
},
{
"id": "Binnen",
"label": {
"en": "naar Binnen"
}
}
]
}
]
},
The capability is used in driver.compose.json:
"capabilities": [
"measure_my_picker_dir"
],
In principle this is functioning. However, the tag which shows up for the device has the number 1, 2 or 3.
I would like that the id (or label) “Auto”, “Buiten” or “Binnen” is printed in the tag such that it can be used within a flow as text.
Does anyone know how to get this done?