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|numbertab id
booleantrue|false to allow/cancel closing

Example

var myRibbon = new dhtmlXRibbon("parentId");
 
myRibbon.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