Sha256: 49731eb30b3a5b9cd97a544bcdf92a7b7b712b69eb5f67b4797a1c9bfdcd9857
Contents?: true
Size: 626 Bytes
Versions: 8
Compression:
Stored size: 626 Bytes
Contents
require_relative "../lib/glimmer" 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 HelloCombo include Glimmer def launch person = Person.new shell { composite { combo(:read_only) { selection bind(person, :country) } button { text "Reset" on_widget_selected do person.reset_country end } } }.open end end HelloCombo.new.launch
Version data entries
8 entries across 8 versions & 1 rubygems