Created
July 17, 2012 22:57
-
-
Save grantges/3132706 to your computer and use it in GitHub Desktop.
TableView - Rows and Border Radius
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
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