DayPilot.Scheduler.onBeforeTimeHeaderRender

Fire before a Scheduler time header cell is rendered. You can use it to customize the time header cells.

Declaration

DayPilot.Scheduler.onBeforeTimeHeaderRender(args)

Parameters

  • 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

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

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