DayPilot.Scheduler.multirange.add

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 start

  • end (DayPilot.Date or string) - segment end

  • resource (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]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript