DHTMLX Docs & Samples Explorer

onBeforeActive

This event calls user-defined handlers (if there are any) and passes the following parameter:

  • itemId - id of the item.
    dhxAccord.attachEvent("onBeforeActive", function(itemId){
        // code here
        return true; // item will be opened
        return false; // item will not be opened
    });    
    // or
    function doOnBeforeActive(itemId){
        // code here
        return true; // item will be opened
        return false; // item will not be opened
    });    
    dhxAccord.attachEvent("onBeforeActive", doOnBeforeActive);