DayPilot.Scheduler.links.findAllByFromTo

The links.findAllByFromTo() method finds links by the IDs of the JavaScript Scheduler events they connect.

Declaration

DayPilot.Scheduler.links.findAllByFromTo(from, to);

Parameters

  • from (string | number, optional) - ID of the source event

  • to (string | number, optional) - ID of the target event

Return Value

Returns an array of DayPilot.Link objects that match the source and target event IDs.

Notes

Both parameters are optional. Pass null for one of them to find all links that start or end on the specified event.

The ID values are compared using ===, so 1 is different from "1".

Example

const dp = new DayPilot.Scheduler("dp", {
  // ...
});
dp.init();

const links = dp.links.findAllByFromTo("event-1", null);

See Also

Dependency Links in the Scheduler Component [doc.daypilot.org]

DayPilot.Scheduler.links.findByFromTo()

DayPilot.Scheduler.links.find()

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript