Skip to content

Instantly share code, notes, and snippets.

@hernad
Created December 2, 2008 17:56
Show Gist options
  • Save hernad/31199 to your computer and use it in GitHub Desktop.
Save hernad/31199 to your computer and use it in GitHub Desktop.
class Person
attr_accessor :provinces, :provinces_options
def initialize
self.provinces_options=[
"",
"Quebec",
"Ontario",
"Manitoba",
"Saskatchewan",
"Alberta",
"British Columbia",
"Nova Skotia",
"Newfoundland"
]
self.provinces = ["Quebec", "Manitoba", "Alberta"]
end
end
class HelloMultiSelectList
include Glimmer
def launch
shell {
list(multi) {
selection bind(Person.new, :provinces)
}
}.open
end
end
HelloMultiSelectList.new.launch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment