-
-
Save billdawson/d116232ef3ba72a4d26e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Titanium.UI.setBackgroundColor('#000'); | |
var tabGroup = Titanium.UI.createTabGroup(); | |
var win1 = Titanium.UI.createWindow({ | |
tabBarHidden: true, | |
title:'Tab 1', | |
backgroundColor:'#fff' | |
}); | |
var l = Ti.UI.createLabel({ | |
top: 1, | |
left: 1, | |
width: 200, | |
height: 50, | |
text: 'This TextField should not be editable:' | |
}); | |
win1.add(l); | |
var tfNotEditable = Ti.UI.createTextField({ | |
top: 55, | |
left: 1, | |
width: 200, | |
height: 50, | |
editable: false, | |
value: 'default text here', | |
borderColor: 'black' | |
}); | |
win1.add(tfNotEditable); | |
var tab1 = Titanium.UI.createTab({ | |
icon:'KS_nav_views.png', | |
title:'Tab 1', | |
window:win1 | |
}); | |
tabGroup.addTab(tab1); | |
tabGroup.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment