Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Micha Hastrich on Nov 23, 2009 06:20
open dhtmlx forum
Tabbar Iterator

Hi,

is it possible to iterate through tabs in tabbar and get the header of all tabs?

Answer posted by Alex (support) on Nov 23, 2009 06:46

Hello,

there isn't built-in method that allows iterate through tabs. Try to use the following method:

var labels = new Array();

for(var id in tabbar._tabs)
  labels.push(tabbar.getLabel(id));

Here tabbar is tabbar object, _tabs is a private property of tabbar.