Skip to content

Instantly share code, notes, and snippets.

@rblalock
Created October 26, 2010 04:48
Show Gist options
  • Save rblalock/646339 to your computer and use it in GitHub Desktop.
Save rblalock/646339 to your computer and use it in GitHub Desktop.
Typical table layout code block
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