Class: NfgUi::Bootstrap::Components::NavbarNav

Inherits:
Base
  • Object
show all
Includes:
Utilities::Wrappable
Defined in:
lib/nfg_ui/bootstrap/components/navbar_nav.rb

Overview

Bootstrap Navbar Component getbootstrap.com/docs/4.1/components/navbar/

Direct Known Subclasses

Components::Patterns::NavbarNav

Instance Attribute Summary

Attributes included from Utilities::Wrappable

#as

Attributes inherited from Base

#body, #options, #view_context

Instance Method Summary collapse

Methods included from Utilities::Wrappable

#utility_initialize

Methods inherited from Base

#data, #href, #html_options, #id, #initialize, #render, #style

Constructor Details

This class inherits a constructor from NfgUi::Bootstrap::Components::Base

Instance Method Details

#component_familyObject



11
12
13
# File 'lib/nfg_ui/bootstrap/components/navbar_nav.rb', line 11

def component_family
  :navbar
end

#leftObject

Left by default



20
21
22
# File 'lib/nfg_ui/bootstrap/components/navbar_nav.rb', line 20

def left
  options.fetch(:left, default_left)
end

#rightObject



15
16
17
# File 'lib/nfg_ui/bootstrap/components/navbar_nav.rb', line 15

def right
  options.fetch(:right, false)
end