Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12982] BlackBerry: TabGroup.tabs

GitHub Issuen/a
TypeSub-task
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-22T00:47:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 06 BB, 2013 Sprint 06
ComponentsBlackBerry
Labelsn/a
ReporterJosh Roesslein
AssigneeJosh Roesslein
Created2013-03-06T21:28:10.000+0000
Updated2017-03-08T18:26:15.000+0000

Description

Allow developers to query a list of tabs in a group by using the "tabs" property.

Acceptance Test

var tabGroup = Ti.UI.createTabGroup();
 
var tab1 = Ti.UI.createTab({
  title: 'A tab.',
  window: Ti.UI.createWindow({backgroundColor: 'blue'})
});
tabGroup.addTab(tab1);
 
var tab2 = Ti.UI.createTab({
  title: 'Another tab.',
  window: Ti.UI.createWindow({backgroundColor: 'red'})
});
tabGroup.addTab(tab2);

var tabs = tabGroup.tabs,
    count = tabs.length;
Ti.API.info('tabs count = ' + count);
Ti.API.info('tabs titles: ');
for (var i = 0; i < count; i++) {
	Ti.API.info(tabs[i].title);
}
 
tabGroup.open();

Comments

  1. Lee Morris 2017-03-08

    Closing ticket as resolved.

JSON Source