Closed spotlightishere closed 2 years ago
It was determined that this was due to selList
not being properly specified - the children id
and name
within values
must be in their own parent node together. (This was resolved in 8551811cfdc3f681e20d7cb417eda92b64965a0e.)
For example, to have two options, one would need to do the following with our current setup:
"selList": {
"values": {
"first_option": {
"id": 1,
"name": "First Option",
},
"second_option": {
"id": 2,
"name": "Second Option",
}
}
}
One can also utilize RepeatedElement
- the name of the parent node around id
/name
is ignored.
The resulting UI should match this:
The channel will query with action type webApi_basket_list
to denote adding an item. The value of selList
will be only be set as a query parameter upon the second call.
When selecting a single item, options should be available, but how to construct them is currently unknown. We'll need to figure this out.