The links.findByFromTo() method finds a link by the IDs of the JavaScript Scheduler events it connects.
Declaration
DayPilot.Scheduler.links.findByFromTo(from, to)Parameters
from- the ID of the source eventto- the ID of the target event
Return Value
Returns a DayPilot.Link object if the link is found; otherwise it returns null.
If there are multiple links connecting these events, the first one is returned.
Notes
The id values are compared using ===, so 1 is different from "1".
Example
const link = scheduler.links.findByFromTo("event-1", "event-2");
if (link) {
// ...
}See Also
DayPilot.Scheduler.links.find()
DayPilot.Scheduler.links.findAllByFromTo()
Links API [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot