fires when the user presses the "Close" button on a tab
id | string|number | tab id |
boolean | true|false to allow/cancel closing |
var myRibbon = new dhtmlXRibbon("parentId");
myRibbon.attachEvent("onTabClose", function(id){
// your code here
return true;
});
Fires both for enabled and disabled tabs, return true|false to allow/cancel closing
Back to top