I'd like to be able to add an icon (with position: left, centre?, right) with colour / styling into the items of a dropdown menu list.
I have a dropdown list where an operator can select items to produce. If the item has already been produced, it will have a check next to it, but they will still be able to select it to make it again. (sounds a bit odd, but that's the requirement)
put this in the markdown component binding like usual
you'll ofc will have to add some python logic to append the style string based on the required labels in de dropdown
(idk if everyone has these Builtin/icons or is it from my test project?)
Coool remind me how to assign a data-label to a dropdown item? Or is this literally the props.option?[0].label prop value?
Also (I know I'm being difficult haha) but is it possible to use a material.io icon from the material icon library? (or I could just import this into the Image browser I guess - I've already downloaded them all as SVGs)
I guess I could always add them to the webserver folder as well they're libraries of multiple SVG definitions though, so I wouldn't know how to pull one of them out