Skip to content

Instantly share code, notes, and snippets.

@srahim
Created August 5, 2011 22:43
Show Gist options
  • Save srahim/1128706 to your computer and use it in GitHub Desktop.
Save srahim/1128706 to your computer and use it in GitHub Desktop.
The sample code
var win = Ti.UI.createWindow({
title: '1. Look @ White Table',
backgroundColor: '#000'
});
var dat = [];
var table = Ti.UI.createTableView({
data:dat,
separatorColor: 'blue'
});
win.add(table);
var addRow = Ti.UI.createButton({
bottom: 0, height: 50,
title: '2. Click Me'
});
addRow.addEventListener('click', function() {
table.appendRow({ title: '3. Look @ My Separator' });
});
win.add(addRow);
var tabGroup = Ti.UI.createTabGroup();
tabGroup.addTab(Ti.UI.createTab({
navBarHidden:true,
window: win
}));
win.hideNavBar();
tabGroup.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment