How to get unit section id from an event


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… ?


There is getEvent() method to get the event object by its id

To add the class to any event, use the required template (event_class template for Unit view)