DayPilot.Gantt.onBeforeTimeHeaderRender

The onBeforeTimeHeaderRender event is fired before a Gantt time header cell is rendered. You can use it to customize the time header cells.

Declaration

DayPilot.Gantt.onBeforeTimeHeaderRender(args)

Parameters

  • args.header.areas (array) - active areas
  • args.header.backColor (string)
  • args.header.cssClass
  • args.header.end (DayPilot.Date, read-only)
  • args.header.html (string)
  • args.header.level (read-only; zero-based row index)
  • args.header.start (DayPilot.Date, read-only)
  • args.header.toolTip (string)

Example

gantt.onBeforeTimeHeaderRender = function(args) {
  if (args.header.start.getDayOfWeek() === 6) {
      args.header.html = "Sat";
  }
};