detachEvent

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

void detachEvent(string id);
idstring이벤트 핸들러의 식별자

Example

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

See also
Back to top