Skip to content

Instantly share code, notes, and snippets.

@grantges
Created July 17, 2012 22:57
Show Gist options
  • Save grantges/3132706 to your computer and use it in GitHub Desktop.
Save grantges/3132706 to your computer and use it in GitHub Desktop.
TableView - Rows and Border Radius
var win = Ti.UI.createWindow({layout: 'vertical', backgroundColor:'#fff'});
var data = [];
for(var i=0; i<20; i++){
var row = Ti.UI.createTableViewRow({
height: 40,
width: Ti.UI.FILL
});
row.title = 'Item '+i;
var tf = Ti.UI.createTextField({
right: 5,
height: Ti.UI.SIZE,
width: 200,
});
row.add(tf);
data.push(row);
}
var tableView = Ti.UI.createTableView({
top: 50,
width: '90%',
height: 600,
border: 1,
borderColor: '#666',
borderRadius: 10,
data: data
});
win.add(tableView);
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment