getNumberOfTabs

returns the number of tabs

number getNumberOfTabs();

Returns

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