open tabs in tabGroup

You must Login before you can answer or comment on any questions.

hi,

i have a tabgroup instance, and open tabs with this method:

function addTab(s)
{
    var w = Ti.UI.createWindow({url: "/view/tab.js"});
    var tab = Ti.UI.createTab({window:w, title:s});
 
    tabGroup.addTab(tab);
}
 
addTab("1");
addTab("2");
in tab.js i have just a on/off switch, default to off. but when i open the tabGroup
tabGroup.open();
and set the activeTab to 1
tabGroup.setActiveTab(2);
change the switch to on, switch back to tab 1, the switch is also set to on.

its like the second tab would be not visible/open or transparent...

any ideas?

1 Answer

ok, i figured it out: the tabs are required to have a title property... would be nice to have it mentioned in the api.

Your Answer

Think you can help? Login to answer this question!