Class: InputsPage
- Inherits:
-
UnderOs::Page
- Object
- UnderOs::Page
- InputsPage
- Defined in:
- app/pages/inputs_page.rb
Instance Attribute Summary
Attributes inherited from UnderOs::Page
Instance Method Summary collapse
-
#initialize ⇒ InputsPage
constructor
A new instance of InputsPage.
Methods inherited from UnderOs::Page
#alert, #build_layout, #compile_styles, #history, layout, #name, #navbar, new, #repaint, #setup_wrap, #title, #title=, #view, #view=
Methods included from UnderOs::Events
Constructor Details
#initialize ⇒ InputsPage
Returns a new instance of InputsPage.
2 3 4 5 6 7 8 |
# File 'app/pages/inputs_page.rb', line 2 def initialize @single_select = first('#single-select').on(:change){|e| e.target.hide} @multi_select = first('#multi-select' ).on(:change){|e| e.target.hide} first('#show-single-select').on(:tap){ @single_select.toggle } first('#show-multi-select' ).on(:tap){ @multi_select.toggle } end |