[TIMOB-12982] BlackBerry: TabGroup.tabs
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-22T00:47:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.1.0, 2013 Sprint 06 BB, 2013 Sprint 06 |
Components | BlackBerry |
Labels | n/a |
Reporter | Josh Roesslein |
Assignee | Josh Roesslein |
Created | 2013-03-06T21:28:10.000+0000 |
Updated | 2017-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();
Closing ticket as resolved.