The links.find() method finds a link by its ID in the JavaScript Scheduler.
Declaration
DayPilot.Scheduler.links.find(id);Parameters
id(string | number) - link ID to find
Return Value
Returns a DayPilot.Link object if the link is found; otherwise returns null.
Notes
The id value is compared using ===, so 1 (number) is different from "1" (string).
Example
const dp = new DayPilot.Scheduler("dp", {
// ...
});
dp.init();
const link = dp.links.find("link-1");
if (link) {
// ...
}See Also
Links API [doc.daypilot.org]
DayPilot.Scheduler.links.add()
DayPilot.Scheduler.links.findByFromTo()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot