본문으로 건너뛰기

onLinkCreated

Description

사용자가 작업 간에 새로운 링크를 생성할 때 발생합니다

onLinkCreated: (link: Link) => boolean;

Parameters

  • link - (required) Link - 새로운 링크의 객체

Returns

  • result - (boolean) - 반환 false를 하면 새 링크의 생성이 취소되고, true를 반환하면 기본 처리가 계속됩니다

Example

gantt.attachEvent("onLinkCreated", function(link){
// 여기에 코드 작성
return true;
});

Details

이벤트는 새 링크가 표시되기 전에 발생하며, 이를 통해 링크 생성을 취소할 수 있습니다.

Change log

  • v6.2.2에서 추가되었습니다
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.