DayPilot.Month.onBeforeHeaderRender

onBeforeHeaderRender is called for every day-of-week header (Monday, Tuesday...).

Declaration

onBeforeHeaderRender(args)

Parameters

  • args.header.dayOfWeek (read-only)
  • args.header.html
  • args.header.backColor

Example

dp.onBeforeHeaderRender = function(args) {
  if (args.header.dayOfWeek === 6) {
    args.header.backColor = "#cccccc";
  }
};

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