DayPilot.Scheduler.links.findByFromTo

The links.findByFromTo() method finds a link by the IDs of events it connects.

Declaration

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

Parameters

  • 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".

Return Value

DayPilot.Link object if the link is found, otherwise null. If there are multiple links connecting these events, the first one is returned.