Class: HelloListMultiSelection

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

Instance Method Summary collapse

Instance Method Details

#launchObject



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/glimmer-dsl-opal/samples/hello/hello_list_multi_selection.rb', line 26

def launch
  person = Person.new
  shell {
    composite {
      list(:multi) {
        selection bind(person, :provinces)
      }
      button {
        text "Reset"
        on_widget_selected do
          person.reset_provinces
        end
      }
    }
  }.open
end