Check documentation for the latest version of dhtmlxSuite onTabClick DHTMLX Docs

onTabClick

fires when the user clicks on a tab

void onTabClick(string|number id,string|number lastId);
idstring|numberid of the clicked tab
lastIdstring|numberid of the previously active tab, if any

Example

var myRibbon = new dhtmlXRibbon("parentId");
 
myRibbon.attachEvent("onTabClick", function(id, lastId){
    // your code here
});

Details

Fires both for enabled and disabled tabs, not cancelable.

Back to top