DayPilot.Gantt.onBeforeTimeHeaderRender

Fire 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.start (DayPilot.Date, read-only)
  • args.header.end (DayPilot.Date, read-only)
  • args.header.level (read-only; zero-based row index)
  • args.header.html (string)
  • args.header.tooltip (string)
  • args.header.backColor (string)

Example

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

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java