Add CSS class based on condition

I would like to add a CSS class to event boxes on scheduler based on condition. For example, if price property of an event is higher than 100, CSS class “.expensive” should be automatically added to this event. How can I do this?


scheduler.templates.event_text = function(start,end,event){
if(your condition)
event.color = “#FFBD14”;
}

Hi,
you can add any CSS class to an event in the “event_class” template:

scheduler.templates.event_class = function(start,end,ev){ if (ev.price > 100) return "expensive"; else return ""; };
docs.dhtmlx.com/scheduler/api__s … plate.html