The links.findByFromTo() method finds a link by the IDs of JavaScript Scheduler events it connects.
DayPilot.Scheduler.links.findByFromTo(from, to);
from
- the id of the source event
to
- the id of the target event
Note: The id
is compared using ===
. That means 1
is different from "1"
.
DayPilot.Link object if the link is found, otherwise null
. If there are multiple links connecting these events, the first one is returned.