Created
December 2, 2008 17:56
-
-
Save hernad/31199 to your computer and use it in GitHub Desktop.
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
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