DayPilot.Calendar.onAfterCellRender

The onAfterCellRender event can be used to access the Calendar cell DOM element after it has been rendered.

The most common use case is adding custom event handlers to the cell div.

Do not modify the visible content using this event - that could cause performance issues. To modify the event HTML, you can use onBeforeCellRender event.

Available since version 2021.4.5129.

Declaration

DayPilot.Calendar.onAfterCellRender(args);

Parameters

  • args.cell.start - cell start (DayPilot.Date)
  • args.cell.end - cell end (DayPilot.Date)
  • args.cell.resource - cell resource ID (in "Resources" mode)
  • args.div - event <div> element (it's the top-level element marked with *_cell CSS class)