[TIMOB-12985] BlackBerry: TabGroup.removeTab()
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-22T05:28:52.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:58:23.000+0000 |
Updated | 2017-03-08T18:26:06.000+0000 |
Description
Allow developers to remove tabs from a group.
Acceptance Test
var tabGroup = Ti.UI.createTabGroup();
var tab1 = Ti.UI.createTab({
title: 'A tab.',
win: Ti.UI.createWindow()
});
tabGroup.addTab(tab1);
var tab2 = Ti.UI.createTab({
title: 'Another tab.',
win: Ti.UI.createWindow()
});
tabGroup.addTab(tab2);
tabGroup.open();
setTimeout(function() {
tabGroup.removeTab(tab2);
}, 3000);
1. Run the application and verify two tabs are visible.
2. After 3 seconds the second tab should be removed from the group.
Closing ticket as resolved.