selectize.js icon indicating copy to clipboard operation
selectize.js copied to clipboard

How to change the color of certain selectize dropdown items only

Open twilco opened this issue 12 years ago • 2 comments

Hi all. I'm trying to change the text color of certain selectize items based on a value I retrieve from the database (if the value is 1, the color should be green; otherwise red). Is there anyway to do this? I've tried a bunch of things but I can't seem to get it to work.

Let me know if there is any way to do this, thanks.

twilco avatar Jul 02 '14 17:07 twilco

Take a look at the available rendering optinos: https://github.com/brianreavis/selectize.js/blob/master/docs/usage.md#rendering

Example: http://jsfiddle.net/f8pwf/

enoshixi avatar Jul 02 '14 17:07 enoshixi

Thanks for fielding this, @enoshixi!

brianreavis avatar Jul 02 '14 17:07 brianreavis