DayPilot.Gantt.onBeforeCornerRender

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

Available since 2020.2.4376.

Declaration

DayPilot.Gantt.onBeforeCornerRender(args)

Parameters

  • args.control - DayPilot.Gantt instance
  • args.html (string) - custom HTML
  • args.areas (array) - custom active areas

Example

dp.onBeforeCornerRender = function(args) {
  // display the current year
  args.html = dp.visibleStart().toString("yyyy");
};