Skip to content

Instantly share code, notes, and snippets.

@noahd1
Created March 4, 2010 16:24
Show Gist options
  • Save noahd1/321852 to your computer and use it in GitHub Desktop.
Save noahd1/321852 to your computer and use it in GitHub Desktop.
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var win = Titanium.UI.createWindow({ });
var data = [
{title: 'foo'},
{title: 'bar'},
{title: 'jumblaya'},
{title: 'tigers'},
{title: 'warriors'}
];
// create table view
var tableview = Titanium.UI.createTableView({
data:data
});
win.add(tableview);
var edit = Titanium.UI.createButton({
title:'Move'
});
win.setRightNavButton(edit); // doesn't appear for me :(
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment