class Navigatrix::Rendering::Strategies::Bootstrap::Navbar::Item
Private Instance Methods
dropdown_icon()
click to toggle source
# File lib/navigatrix/rendering/strategies/bootstrap/navbar.rb, line 34 def dropdown_icon options[:dropdown_icon] || content_tag(:i, nil, :class => "icon-chevron-down icon-white") end
html_attributes()
click to toggle source
Calls superclass method
Navigatrix::Rendering::Strategies::Item#html_attributes
# File lib/navigatrix/rendering/strategies/bootstrap/navbar.rb, line 22 def html_attributes super.merge_attribute(:class, "dropdown") end
name()
click to toggle source
Calls superclass method
Navigatrix::Rendering::Strategies::Item#name
# File lib/navigatrix/rendering/strategies/bootstrap/navbar.rb, line 26 def name (super + dropdown_icon).html_safe end
nested_list()
click to toggle source
# File lib/navigatrix/rendering/strategies/bootstrap/navbar.rb, line 30 def nested_list List.new(children, options).render if has_children? end