본문으로 건너뛰기

detachEvent

Description

이벤트에 바인딩된 핸들러를 분리합니다(이전에 attachEvent() 메서드로 연결된 경우

detachEvent: (id: string) => void

Parameters

  • id - (required) string - 이벤트의 식별자

Example

const myEvent = gantt.attachEvent("onTaskClick", function(id, e) {
alert("You've just clicked an item with id="+id);
});

gantt.detachEvent(myEvent);
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.