Check documentation for the latest version of dhtmlxSuite attachEvent DHTMLX Docs

attachEvent

adds any user-defined handler to available events

number attachEvent(string name,function handler);
namestringname of the event
handlerfunctionuser-defined event handler
numberinternal event id, you can use it for detachEvent(id)

Example

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

Details

This API page is for Vault v2.5. Please go to docs.dhtmlx.com/vault/ to see API reference for the current version of dhtmlxVault.

Back to top