Richselect

What is the best way to disable individual items in a richselect list? I want to show an item in the list, but with a different CSS and disable its ItemClick

CSS should be set in the list configuration, but there’s no straight way to disable click itself, so you need to use control’sonChange to check if the item is disabled. For example:

http://webix.com/snippet/f86647fc

hi Listopad. Thank you. I have implemented that and it works fine. I only have to add the $css property as there is a CSS3 way to prevent selection of items (pointer-events: none)