Skip to content

Instantly share code, notes, and snippets.

@pengwynn
Created May 2, 2011 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pengwynn/952070 to your computer and use it in GitHub Desktop.
Save pengwynn/952070 to your computer and use it in GitHub Desktop.
Courses Loop
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