Sha256: 9795b7b6e92338dbbb1ee9d0c5807d4739eddfb8fcb4f7a9e8f003888fe7335f
Contents?: true
Size: 604 Bytes
Versions: 13
Compression:
Stored size: 604 Bytes
Contents
class Person attr_accessor :country, :country_options def initialize self.country_options=["", "Canada", "US", "Mexico"] self.country = "Canada" end def reset_country self.country = "Canada" end end class HelloListSingleSelection include Glimmer def launch person = Person.new shell { composite { list { selection bind(person, :country) } button { text "Reset" on_widget_selected do person.reset_country end } } }.open end end HelloListSingleSelection.new.launch
Version data entries
13 entries across 13 versions & 1 rubygems