The afterEventRender event handler runs after an event has been rendered in legacy api=1 mode and gives you access to the event <div> element.
DayPilot.Calendar.afterEventRender(e, div)e (DayPilot.Event) - the event reference
div (object) - reference to the event <div> element
This legacy callback runs after the event element has been inserted into the Calendar. Use it for post-render DOM adjustments or attaching client-side behavior to the rendered element.
If you need to modify the rendered event HTML before display, use DayPilot.Calendar.onBeforeEventRender instead. In the current JavaScript API, use DayPilot.Calendar.onAfterEventRender.
Event Active Areas [doc.daypilot.org]
DayPilot.Calendar.onAfterEventRender