Class: InputsPage

Inherits:
UnderOs::Page show all
Defined in:
app/pages/inputs_page.rb

Instance Attribute Summary

Attributes inherited from UnderOs::Page

#_, #stylesheet

Instance Method Summary collapse

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

#emit, #off, #on

Constructor Details

#initializeInputsPage

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