The links.findAllByFromTo() method finds links by the IDs of the JavaScript Scheduler events they connect.
DayPilot.Scheduler.links.findAllByFromTo(from, to);from (string | number, optional) - ID of the source event
to (string | number, optional) - ID of the target event
Returns an array of DayPilot.Link objects that match the source and target event IDs.
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".
const dp = new DayPilot.Scheduler("dp", {
// ...
});
dp.init();
const links = dp.links.findAllByFromTo("event-1", null);Dependency Links in the Scheduler Component [doc.daypilot.org]
DayPilot.Scheduler.links.findByFromTo()