Class: HelloListSingleSelection

Inherits:
Object
  • Object
show all
Includes:
Glimmer
Defined in:
lib/glimmer-dsl-opal/samples/hello/hello_list_single_selection.rb

Instance Method Summary collapse

Instance Method Details

#launchObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/glimmer-dsl-opal/samples/hello/hello_list_single_selection.rb', line 16

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