DayPilot.Scheduler.selectTimeRange

The selectTimeRange() method allows to select a time range programmatically.

Declaration

DayPilot.Scheduler.selectTimeRange(start, end, resource[, dontFireEvent]);

Parameters

  • start - selection start (DayPilot.Date or ISO string)
  • end - selection end (DayPilot.Date or ISO string)
  • resource - selection resource id (number or string)
  • dontFireEvent - set to true to prevent onTimeRangeSelect and onTimeRangeSelected from firing (boolean); optional

See Also

Example

dp.selectTimeRange("2019-11-01T00:00:00", "2019-11-03T00:00:00", "A");