The links.find() method finds a link by its ID.
Declaration
DayPilot.Gantt.links.find(id);Parameters
id- the link ID to be found
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 link = gantt.links.find("link-1");
if (link) {
// ...
}See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot