addLink
Description
Adds a new dependency link
addLink: (link: any) => string | number
Parameters
link- (required) object - the link object
Returns
id- (string | number) - the link's ID
Example
const linkId = gantt.addLink({
id: 1,
source: 1,
target: 2,
type: gantt.config.links.finish_to_start
});
Details
The method invokes the onBeforeLinkAdd and onAfterLinkAdd events.
Related API
Related Guides
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.