DayPilot.Scheduler.onIncludeTimeCell

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

Declaration

onIncludeTimeCell(args)

Parameters

  • args.cell.start - read/write cell start (DayPilot.Date)
  • args.cell.end - read/write cell end (DayPilot.Date)
  • args.cell.visible - specifies whether this cell should be included in the timeline (boolean)

Notes

This event handlers will be fired regardless of 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

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