Does select single support using a standard array? How to use a select single in a bind for each?
It appears the select single component only works with either an SDP or ADP.
I have a select single wrapped in a bind for each. Let's say the bind for each has an array with the values [ "make", "model", colors" ]. I want to display 3 select single components, one loaded with car brands (i.e. audi, volvo, etc), one loaded with models and the other loaded with colors.
The issue is I don't know the data ahead of time so I am loading a standard array with all the data including make, model and colors. What I wanted to do was have the bind for each filter the array based on the for each value and load each single select with the appropriate filtered data. Below is what I was assigning to the Data property on the single select. The idea is $current.data would be 1 of the 3 values ("make", "model", colors") and it would filter my array for each single select.