Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10447] MobileWeb: TabGroup: provide support for barColor property

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-15T17:43:44.000+0000
Affected Version/sRelease 2.1.1, Release 2.1.2
Fix Version/sn/a
ComponentsMobileWeb
Labelsapi, parity, qe-mw082012
ReporterDustin Hyde
AssigneeEric Merriman
Created2012-08-14T17:12:28.000+0000
Updated2017-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

FileDateSize
api docs.png2012-08-14T17:14:27.000+000021466
barColor.png2012-08-14T17:12:28.000+0000103583

Comments

  1. Dustin Hyde 2012-08-14

    The work-around is to set the barColor of the window.
  2. Lee Morris 2017-06-15

    Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.

JSON Source