[TIMOB-10447] MobileWeb: TabGroup: provide support for barColor property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-15T17:43:44.000+0000 |
Affected Version/s | Release 2.1.1, Release 2.1.2 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | api, parity, qe-mw082012 |
Reporter | Dustin Hyde |
Assignee | Eric Merriman |
Created | 2012-08-14T17:12:28.000+0000 |
Updated | 2017-06-15T17:43:44.000+0000 |
Description
add TabGroup barColor support
works on ios, not a regression
test steps:
1. run code:
var getRandomColor = function()
{
return "#" + Math.random().toString(16).slice(2, 8);
};
function createTabGroupObject() {
var tabGroupObject = {};
tabGroupObject.window = Ti.UI.createWindow();
tabGroupObject.tabGroup = Ti.UI.createTabGroup({barColor:getRandomColor()});
tabGroupObject.window.add(tabGroupObject.tabGroup);
tabGroupObject.addTabFromString = function(string) {
var color = getRandomColor();
var tabWindow = Ti.UI.createWindow({
backgroundColor : color,
title : string
});
var tab = Ti.UI.createTab({
window : tabWindow,
title : string,
borderWidth : 1,
borderColor: 'black',
backgroundColor : color
});
tabGroupObject.tabGroup.addTab(tab);
tabGroupObject['tab' + string] = tab;
};
tabGroupObject.open = function() {
tabGroupObject.window.open();
tabGroupObject.tabGroup.open();
};
return tabGroupObject;
}
var tabGroupObject = createTabGroupObject();
tabGroupObject.addTabFromString('Checkout');
tabGroupObject.addTabFromString('Return');
tabGroupObject.open();
expected result:
top bar should have random color, currently it is only grey
Attachments
File | Date | Size |
---|---|---|
api docs.png | 2012-08-14T17:14:27.000+0000 | 21466 |
barColor.png | 2012-08-14T17:12:28.000+0000 | 103583 |
The work-around is to set the barColor of the window.
Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.