Created
August 5, 2011 22:43
-
-
Save srahim/1128706 to your computer and use it in GitHub Desktop.
The sample code
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
var win = Ti.UI.createWindow({ | |
title: '1. Look @ White Table', | |
backgroundColor: '#000' | |
}); | |
var dat = []; | |
var table = Ti.UI.createTableView({ | |
data:dat, | |
separatorColor: 'blue' | |
}); | |
win.add(table); | |
var addRow = Ti.UI.createButton({ | |
bottom: 0, height: 50, | |
title: '2. Click Me' | |
}); | |
addRow.addEventListener('click', function() { | |
table.appendRow({ title: '3. Look @ My Separator' }); | |
}); | |
win.add(addRow); | |
var tabGroup = Ti.UI.createTabGroup(); | |
tabGroup.addTab(Ti.UI.createTab({ | |
navBarHidden:true, | |
window: win | |
})); | |
win.hideNavBar(); | |
tabGroup.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment