detaches a handler from an event (which was attached before by the attachEvent() method)
id | string | the event's id |
const myEvent = gantt.attachEvent("onTaskClick", function(id, e) {
alert("You've just clicked an item with id="+id);
});
gantt.detachEvent(myEvent);