DayPilot.Month.onBeforeCellRender

The onBeforeCellRender event is fired once for every cell during rendering. You can use it to customize the cell appearance.

Declaration

DayPilot.Month.onBeforeCellRender(args)

Parameters

  • args.cell.areas
  • args.cell.backColor
  • args.cell.backImage
  • args.cell.backRepeat
  • args.cell.business
  • args.cell.headerHtml
  • args.cell.headerBackColor
  • args.cell.cssClass
  • args.cell.html
  • args.cell.start (read-only)
  • args.cell.end (read-only)

Example

dp.onBeforeCellRender = function(args) {
  if (args.cell.start.getDayOfWeek() === 6) {
    args.cell.backColor = "#eeeeee";
  }
};