본문으로 건너뛰기

detachEvent

Description

이전에 attachEvent() 메서드를 통해 추가된 이벤트 핸들러를 제거합니다.

detachEvent: (id: string) => void

Example

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

gantt.detachEvent(myEvent);