Class: Bootstrap4RailsComponents::Bootstrap::Components::Breadcrumb
- Defined in:
- lib/bootstrap4_rails_components/bootstrap/components/breadcrumb.rb
Overview
Bootstrap Breadcrumb Component getbootstrap.com/docs/4.1/components/breadcrumb/
Instance Attribute Summary
Attributes inherited from Base
#body, #options, #view_context
Instance Method Summary collapse
Methods inherited from Base
#component_initialize, #data, #href, #html_options, #id, #initialize, #style, #utility_initialize
Constructor Details
This class inherits a constructor from Bootstrap4RailsComponents::Bootstrap::Components::Base
Instance Method Details
#component_family ⇒ Object
9 10 11 |
# File 'lib/bootstrap4_rails_components/bootstrap/components/breadcrumb.rb', line 9 def component_family :breadcrumb end |
#render ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/bootstrap4_rails_components/bootstrap/components/breadcrumb.rb', line 13 def render content_tag(:nav, aria: { label: 'breadcrumb' }) do content_tag(:ol, ) do (block_given? ? yield : body) end end end |