How to get unit section id from an event


#1

Hi

i want to know how i can get the event by its id and its unit section
and also to add some css class to that event at same time… ?


#2

Hi,

There is getEvent() method to get the event object by its id
https://docs.dhtmlx.com/scheduler/api__scheduler_getevent.html

To add the class to any event, use the required template (event_class template for Unit view)
https://docs.dhtmlx.com/scheduler/units_view_templates.html