DayPilot.Calendar.onBeforeCellRender

Declaration

onBeforeCellRender(args)

Parameters

  • args.cell.resource (string | number) [read-only]
  • args.cell.start (DayPilot.Date) [read-only]
  • args.cell.end (DayPilot.Date) [read-only]
  • args.cell.cssClass (string)
  • args.cell.html (string)
  • args.cell.backImage (string
  • args.cell.backRepeat (string)
  • args.cell.backColor (string)
  • args.cell.business (boolean)
  • args.cell.areas (array of area data objects)

Example

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