Skip to content

Instantly share code, notes, and snippets.

@jaehess
Forked from noahd1/gist:321831
Created March 4, 2010 17:15
Show Gist options
  • Select an option

  • Save jaehess/321912 to your computer and use it in GitHub Desktop.

Select an option

Save jaehess/321912 to your computer and use it in GitHub Desktop.
Titanium.UI.setBackgroundColor('#000');
var tab_group = Ti.UI.createTabGroup();
var win = Titanium.UI.createWindow({ });
win.hideTabBar();
var edit = Titanium.UI.createButton({title:'Move'});
win.setRightNavButton(edit);
var data = [
{title: 'foo'},
{title: 'bar'},
{title: 'jumblaya'},
{title: 'tigers'},
{title: 'warriors'}
];
var table_view = Titanium.UI.createTableView({data:data});
win.add(table_view);
var tab = Titanium.UI.createTab({ title:'Noah', window:win });
tab_group.addTab(tab);
tab_group.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment