detachEvent

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

void detachEvent(string id);

Parameters

idstringthe event's id

Example

var 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