DayPilot.Scheduler.onBeforeEventRender

The onBeforeEventRender event is called for each item in the data source (events.list) during loading. You can use it to make adjustments to the data item before it is processed and displayed by the JavaScript Scheduler component.

This event is the main event customization tool.

Declaration

DayPilot.Scheduler.onBeforeEventRender(args)

Parameters

Note: In builds 8.1.1794 and previous the event data object is accessible as args.e.

Example

dp.onBeforeEventRender = (args) => {
  args.data.cssClass = "test";
  args.data.text = args.data.text + ":";
};