DayPilot.Gantt.links.find

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

DayPilot.Gantt.links.add()

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript