Check documentation for the latest version of dhtmlxSuite onTabClose DHTMLX Docs

onTabClose

fires when the user presses the "Close" button on a tab

boolean onTabClose(string|number id);
idstring|numberthe tab id
booleantrue|false to allow/cancel closing

Example

var myTabbar = new dhtmlXTabBar("parentId");
 
myTabbar.attachEvent("onTabClose", function(id){
    // your code here
    return true;
});

Details

Fires both for enabled and disabled tabs, return true|false to allow/cancel closing

Back to top