The multirange.add() method adds a new time range to the current selection.
Declaration
DayPilot.Scheduler.multirange.add(selection)Parameters
selection(object) - selection segment to add
The selection object supports the following properties:
start(DayPilot.Date or string) - segment startend(DayPilot.Date or string) - segment endresource(string or number) - segment resource ID
Example
dp.multirange.add({ start: "2025-01-01", end: "2025-01-05", resource: "R1" });See Also
Time range multi-selecting [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot