Class: Bootstrap4RailsComponents::Bootstrap::Components::NavbarNav
- Includes:
- Utilities::Wrappable
- Defined in:
- lib/bootstrap4_rails_components/bootstrap/components/navbar_nav.rb
Overview
Bootstrap Navbar Component getbootstrap.com/docs/4.1/components/navbar/
Instance Attribute Summary
Attributes included from Utilities::Wrappable
Attributes inherited from Base
#body, #options, #view_context
Instance Method Summary collapse
- #component_family ⇒ Object
-
#left ⇒ Object
Left by default.
- #right ⇒ Object
Methods included from Utilities::Wrappable
Methods inherited from Base
#component_initialize, #data, #href, #html_options, #id, #initialize, #render, #style, #utility_initialize
Constructor Details
This class inherits a constructor from Bootstrap4RailsComponents::Bootstrap::Components::Base
Instance Method Details
#component_family ⇒ Object
11 12 13 |
# File 'lib/bootstrap4_rails_components/bootstrap/components/navbar_nav.rb', line 11 def component_family :navbar end |
#left ⇒ Object
Left by default
20 21 22 |
# File 'lib/bootstrap4_rails_components/bootstrap/components/navbar_nav.rb', line 20 def left .fetch(:left, default_left) end |
#right ⇒ Object
15 16 17 |
# File 'lib/bootstrap4_rails_components/bootstrap/components/navbar_nav.rb', line 15 def right .fetch(:right, false) end |