DayPilot.Scheduler.onBeforeCornerRender

The onBeforeCornerRender event is called during update() and it lets you customize the content of the upper-left corner of the Scheduler component.

Available since 2019.3.3903.

Declaration

DayPilot.Scheduler.onBeforeCornerRender(args)

Parameters

  • args.control - DayPilot.Scheduler instance
  • args.html (string) - custom HTML
  • args.areas (array) - custom active areas (available since 2020.2.4372)

Example

dp.onBeforeCornerRender = function(args) {
  args.html = dp.visibleStart().toString("yyyy");
};