elm-select
elm-select copied to clipboard
Add custom attributes to options
Currently the attributes on options are managed and it's not possible to add any custom attributes to the option.
For example, given a Native variant we might like the items to look more like the following:
<option value="1" data-price="1.50">mushrooms</option>
<option value="2" data-price="1.25">onions</option>
<option value="3" data-price="1.75">peppers</option>
<option value="4" data-price="2.00">pineapple</option>