Class: NavbarPage
- Inherits:
-
UnderOs::Page
- Object
- UnderOs::Page
- NavbarPage
- Defined in:
- app/pages/navbar_page.rb
Instance Attribute Summary
Attributes inherited from UnderOs::Page
Instance Method Summary collapse
-
#initialize ⇒ NavbarPage
constructor
A new instance of NavbarPage.
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 ⇒ NavbarPage
Returns a new instance of NavbarPage.
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/pages/navbar_page.rb', line 2 def initialize find('#buttons button').each do || .on :tap do if .hasClass('icons') . = @icons = .data('icons').split(',').map do |type| UnderOs::UI::Icon.new(type: type) end else . = {}.tap do |hash| .data('icons').split(',').map do |type| hash[type] = Proc.new{ p type } end end end end end end |