DayPilot.Scheduler.onIncludeTimeCell

The onIncludeTimeCell event lets you hide selected time columns and/or customize the column start/end in the JavaScript Scheduler.

Declaration

DayPilot.Scheduler.onIncludeTimeCell(args)

Parameters

  • args.cell.start (DayPilot.Date) - read/write cell start

  • args.cell.end (DayPilot.Date) - read/write cell end 

  • args.cell.visible (boolean) - specifies whether this cell should be included in the timeline

Notes

This event handler will be fired regardless of the showNonBusiness value.

Since version 2019.1.3572, it is possible to adjust args.cell.start and args.cell.end. The cell must not overlap with other timeline cells.

Example

onIncludeTimeCell: (args) => {
  if (args.cell.start.getDayOfWeek() === 0) { // hide Sundays
      args.cell.visible = false;
  }
}