Created
November 11, 2013 17:37
-
-
Save tripitakit/7417094 to your computer and use it in GitHub Desktop.
Appcelerator Titanium iOS tableView test code which displays four tables with combination of moving/moveable/editing/editable properties to test their effects on row appearance and behavior
This file contains hidden or 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({ | |
backgroundColor:'#fff', | |
layout:'vertical', | |
}); | |
var tableData = [{title:"Alpha"}, {title:"Beta"}, {title:"Gamma"}]; | |
var test1 = Ti.UI.createTableView({ | |
headerTitle: 'moving editing', | |
moving: true, | |
editing: true, | |
top: 40, | |
height: 150, | |
data: tableData, | |
}); | |
win.add(test1); | |
var test2 = Ti.UI.createTableView({ | |
headerTitle: 'moving editable', | |
moving: true, | |
editable: true, | |
top: 40, | |
height: 150, | |
data: tableData, | |
}); | |
win.add(test2); | |
var test3 = Ti.UI.createTableView({ | |
headerTitle: 'moveable editing', | |
moveable: true, | |
editing: true, | |
top: 40, | |
height: 150, | |
data: tableData, | |
}); | |
win.add(test3); | |
var test4 = Ti.UI.createTableView({ | |
headerTitle: 'moveable editable', | |
moveable: true, | |
editable: true, | |
top: 40, | |
height: 150, | |
data: tableData, | |
}); | |
win.add(test4); | |
win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment