I would like to know if it is possible to have custom formatting for source values in a dropdown.
For example let’s say I want to show icons circle, triangle and x-mark in the dropdown list but the source i.e. the value to be 1,2,3 respectively.
I looked at various articles and source but couldn’t find anything solid. I did find an article from 8 years ago about key-value pairs but it concluded with that not being supported. Ref: Customize the dropdown source values
I did try allowHtml: true and directly passed the font-awesome icon. however the other things get rendered useless, like having to put logic for passing values to backend and filtering.
I’d like to know if there is any way this can be made possible.
Image: What I want it to look like.