The selectTimeRange() method selects a Scheduler time range programmatically.
Declaration
DayPilot.Scheduler.selectTimeRange(start, end, resource[, dontFireEvent]);Parameters
start(DayPilot.Date or string) - selection start as aDayPilot.Dateinstance or an ISO stringend(DayPilot.Date or string) - selection end as aDayPilot.Dateinstance or an ISO stringresource(string or number) - selection resource IDdontFireEvent(boolean) - optional flag that prevents onTimeRangeSelect and onTimeRangeSelected from firing when set totrue
Example
dp.selectTimeRange("2019-11-01T00:00:00", "2019-11-03T00:00:00", "A");See Also
DayPilot.Scheduler.clearSelection()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot