DayPilot.Month.onBeforeCellRender

Declaration

onBeforeCellRender(args)

Parameters

  • 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";
        }
    };

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