Created
May 2, 2011 18:14
-
-
Save pengwynn/952070 to your computer and use it in GitHub Desktop.
Courses Loop
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
GolfStatus.UI.Views.Play.createSelectCourseWindow = (options) -> | |
window = Ti.UI.createWindow(options) | |
courses = Ti.UI.createTableView | |
className: 'selectionTable' | |
id: 'selectCourse' | |
allowsSelection: true | |
window.add courses | |
bindTable = (courses) -> | |
courseRows = [] | |
for i in [1..4] | |
courseRow = Ti.UI.createTableViewRow | |
className: 'selectionRow' | |
hasCheck: true | |
title: "Course " + i | |
courseRows.push courseRow | |
courses.setData(courseRows) | |
window |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment