DayPilot.Calendar.onBeforeCellRender

Declaration

onBeforeCellRender(args)

Parameters

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

Example

    dp.onBeforeCellRender = function(args) {
        if (args.cell.start.getHours() === 13) {
            args.cell.backColor = "silver";
        }
    };

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