Check documentation for the latest version of dhtmlxSuite onSelect DHTMLX Docs

onSelect

fires when a tab is selected

boolean onSelect(string|number id,string|number lastId);
idstring|numberclicked tab id
lastIdstring|numberid of previously active tab, if any
booleantrue|false to allow/cancel selection

Example

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

Details

Fires only for the enabled tabs, return true|false to allow/cancel selecting

Back to top