Class: NfgUi::Bootstrap::Components::Nav

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

Overview

Direct Known Subclasses

Components::Elements::Nav

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 included from Utilities::Alignable

#center, #right

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



12
13
14
# File 'lib/nfg_ui/bootstrap/components/nav.rb', line 12

def component_family
  :nav
end

#fillObject



16
17
18
# File 'lib/nfg_ui/bootstrap/components/nav.rb', line 16

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

#justifiedObject



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

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

#pillObject



24
25
26
# File 'lib/nfg_ui/bootstrap/components/nav.rb', line 24

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

#tabsObject



28
29
30
# File 'lib/nfg_ui/bootstrap/components/nav.rb', line 28

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

#verticalObject



32
33
34
# File 'lib/nfg_ui/bootstrap/components/nav.rb', line 32

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