Class: NfgUi::Bootstrap::Components::NavbarBrand

Inherits:
Base
  • Object
show all
Defined in:
lib/nfg_ui/bootstrap/components/navbar_brand.rb

Overview

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

Direct Known Subclasses

Components::Elements::NavbarBrand

Instance Attribute Summary

Attributes inherited from Base

#body, #options, #view_context

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

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

Instance Method Details

#component_familyObject



9
10
11
# File 'lib/nfg_ui/bootstrap/components/navbar_brand.rb', line 9

def component_family
  :navbar
end

#hrefObject



13
14
15
# File 'lib/nfg_ui/bootstrap/components/navbar_brand.rb', line 13

def href
  super || '#'
end