class Bh::Classes::Vertical

Public Instance Methods

toggle_button(navbar_id, options = {}) click to toggle source
# File lib/bh/classes/vertical.rb, line 6
def toggle_button(navbar_id, options = {})
  options[:'class']       = :'navbar-toggle'
  options[:'data-target'] = :"##{navbar_id}"
  options[:'data-toggle'] = :'collapse'
  options[:'type']        = :'button'
  @app.content_tag :button, options do
    safe_join [toggle_text, toggle_bar, toggle_bar, toggle_bar]
  end
end

Private Instance Methods

toggle_bar() click to toggle source
# File lib/bh/classes/vertical.rb, line 22
def toggle_bar
  @app.content_tag :span, nil, class: :'icon-bar'
end
toggle_text() click to toggle source
# File lib/bh/classes/vertical.rb, line 18
def toggle_text
  @app.content_tag :span, 'Toggle navigation', class: :'sr-only'
end