detachEvent

detaches a handler from an event (which was attached before by the attachEvent() method)

void detachEvent(string id);
idstringthe event's id

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