Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5194] iOS: add support for changing the font properties for the title of a tab

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2012-05-29T15:56:04.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterJon Alter
AssigneeNeeraj Gupta
Created2011-09-01T16:18:43.000+0000
Updated2017-03-09T22:59:45.000+0000

Description

Add support for changing the font properties for the title of a tab. See attached screenshot

Example

Step 1: run the code below Step 2: the title of the tab should change when you change the font properties of the tab
var tabGroup = Titanium.UI.createTabGroup({
});

var mainWin = Titanium.UI.createWindow({
	title : 'Tab 1',
	backgroundColor : '#fff'
});
var tab1 = Titanium.UI.createTab({
	icon : 'KS_nav_views.png',
	title : 'Tab 1',
	// Setting the size of the text of the tab here
	font : {
		fontSize : 20,
		fontFamily : 'Helvetica Neue'
	},
	window : mainWin
});

var label1 = Titanium.UI.createLabel({
	color : '#999',
	text : 'I am Window 1',
	font : {
		fontSize : 20,
		fontFamily : 'Helvetica Neue'
	},
	textAlign : 'center',
	width : 'auto'
});

mainWin.add(label1);

tabGroup.addTab(tab1);
tabGroup.open();

Attachments

FileDateSize
iOSTab.jpg2011-09-01T16:19:27.000+000021358

Comments

  1. Vishal Duggal 2012-05-29

    Use titleControl property
  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source