DHTMLX Docs & Samples Explorer

onTabClick

occurs when the user clicks on the tab

tabbar.attachEvent("onTabClose", function(id, last_id){
        //any custom code
        return true;
});
  • id - the id of the selected tab
  • last_id - the id of the previously selected tab