Created
October 26, 2010 04:48
-
-
Save rblalock/646339 to your computer and use it in GitHub Desktop.
Typical table layout code block
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 rows = [{text: 'Something here'}]; | |
var row = Titanium.UI.createTableViewRow({ | |
height: '50', | |
backgroundColor: '#eee' | |
}); | |
rows.push(row); | |
// Create the table with populated data | |
var tableview = Titanium.UI.createTableView({ | |
data: rows, | |
backgroundColor: 'transparent', | |
style: Titanium.UI.iPhone.TableViewStyle.GROUPED, | |
layout: 'vertical' | |
}); | |
Ti.UI.currentWindow.add(tableview); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment