본문으로 건너뛰기

addLink

Description

새로운 의존성 링크를 추가합니다

addLink: (link: any) => string | number

Parameters

  • link - (필수) 객체 - 링크 객체

Returns

  • id - (string | number) - 링크의 ID

Example

const linkId = gantt.addLink({
id: 1,
source: 1,
target: 2,
type: gantt.config.links.finish_to_start
});

Details

메서드는 onBeforeLinkAddonAfterLinkAdd 이벤트를 호출합니다.

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.