Check documentation for the latest version 6.0 of dhtmlxSuite detachEvent DHTMLX Docs

detachEvent

detaches a handler from an event

void detachEvent(number id);

Parameters

idnumberinternal event id, returned by attachEvent()

Example

// attach event
var evId = myComponent.attachEvent("eventName", function(){
    // your code here
});
 
// detach event
myComponent.detachEvent(evId);

Back to top