Check documentation for the latest version of dhtmlxSuite getNumberOfTabs DHTMLX Docs

getNumberOfTabs

returns the number of tabs

number getNumberOfTabs();
numberthe number of tabs

Example

var myTabbar = new dhtmlXTabBar("parentId");
 
myTabbar.addTab("a1", "Rage", null, null, true);
myTabbar.addTab("a2", "Motorhead");
 
// get number of tabs
var tabsCount = myTabbar.getNumberOfTabs(); // -> 2

Change log

added in version 4.0

Back to top