DayPilot.Month.onBeforeEventRender

The onBeforeEventRender event is fired before the JavaScript Monthly Calendar renders an event. It lets you customize the event properties dynamically.

Declaration

DayPilot.Month.onBeforeEventRender(args)

Parameters

  • args.control - DayPilot.Month reference; available since 2023.3.5716

  • args.data - raw event data object (shallow copy)

Example

Calendar config:

{
  onBeforeEventRender: (args) => {
    args.data.cssClass = "test";
    args.data.html = args.data.text + " " + args.data.start.toString("h:mm tt");
  },
  // ...
}