class NfgUi::Bootstrap::Components::Nav

Bootstrap Nav Component getbootstrap.com/docs/4.1/components/navs/

Public Instance Methods

component_family() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 12
def component_family
  :nav
end
fill() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 16
def fill
  options.fetch(:fill, false)
end
justified() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 20
def justified
  options.fetch(:justified, false)
end
pill() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 24
def pill
  options.fetch(:pill, false)
end
tabs() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 28
def tabs
  options.fetch(:tabs, false)
end
vertical() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 32
def vertical
  options.fetch(:vertical, false)
end

Private Instance Methods

base_element() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 38
def base_element
  as
end
component_css_class() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 42
def component_css_class
  'nav'
end
css_classes() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 46
def css_classes
  [
    super,
    ('nav-fill' if fill),
    ('nav-justified' if justified),
    ('nav-pills' if pill),
    ('nav-tabs' if tabs),
    ('flex-column' if vertical)
  ].join(' ').squish
end
default_html_wrapper_element() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 57
def default_html_wrapper_element
  :ul
end
non_html_attribute_options() click to toggle source
# File lib/nfg_ui/bootstrap/components/nav.rb, line 61
def non_html_attribute_options
  super.push(:fill,
             :justified,
             :tabs,
             :pill,
             :vertical)
end