[TIMOB-5194] iOS: add support for changing the font properties for the title of a tab
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-05-29T15:56:04.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Jon Alter |
Assignee | Neeraj Gupta |
Created | 2011-09-01T16:18:43.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
iOSTab.jpg | 2011-09-01T16:19:27.000+0000 | 21358 |
Use titleControl property
Closing ticket as invalid.