DHTMLX Docs & Samples Explorer

detachEvent(id)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxtoolbar.js

removes an event handler

  • id - event id
    var id = toolbar.attachEvent("onClick", function(itemId){});
    // detaching event
    toolbar.detachEvent(id);