I have a dynamic multi select which I am using bootstrap-select for look and functionality. It’s working great as is…
However, I would like to use icons and do some custom styling for each item.
I can’t seem to figure out how to pass those values into the individual options with the dynamic select.
Here’s what I thought should work…
<select id="category_select[]" name="category_select[]" title="Categories" class="selectpicker w-100" multiple data-style="btn-info" data-actions-box="true" dmxind:options="sc_categories.data.query1" optiontext="category" optionvalue="category_id" dmx-bind:data-icon="fa-heart"></select>
But that didn’t work. I also tried
That didn’t work either. Not sure what else to try. Any ideas??
Note: I noticed that the icon is “fa-heart” and in Wappler it would be “fa fa-heart” so I did a static select and indeed “fa fa-heart” works but “fa-heart” doesn’t, unfortunately changing that on the dynamic select didn’t change anything.