Details
-
Type:
Sub-task
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Release 3.1.0, 2013 Sprint 05 BB, 2013 Sprint 05
-
Component/s: BlackBerry
-
Labels:None
Description
Support setting a title on a window (both for tabs and standalone windows).
Acceptance Test
Standalone Window
var win = Ti.UI.createWindow({ |
title: 'A lonely window', |
backgroundColor: 'blue' |
});
|
win.open();
|
1. Verify a window opens (blue background).
2. There should be a title at the top.
Tab window
function createTab(color, title) { |
var win = Ti.UI.createWindow({ |
title: title,
|
backgroundColor: color
|
});
|
return Ti.UI.createTab({ |
title: color,
|
window: win
|
});
|
}
|
|
var tabGroup = Ti.UI.createTabGroup(); |
tabGroup.addTab(createTab('blue', 'You take the blue pill.')); |
tabGroup.addTab(createTab('red', 'You take the red pill.')); |
tabGroup.open();
|
1. Verify the tab group opens with two tabs.
2. Verify each tab has a title (bottom) for each color.
3. Try selecting both tabs and verify title for window is displayed on top.