Created
March 4, 2010 16:24
-
-
Save noahd1/321852 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'); | |
// 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