Skip to main content

isLinkActive

Description​

Checks whether a dependency link is effectively active

isLinkActive: (link: Link | string | number) => boolean

Parameters​

  • link - (required) Link | string | number - the link object or ID

Returns​

true if the link's active flag is absent or true and both endpoint tasks are effectively active. Returns false for an unknown link ID or a missing endpoint task.

Example​

const active = gantt.isLinkActive(linkId);

Change log​

  • Added in v10.1
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.