Class: BreadcrumbComponent
- Defined in:
- app/components/breadcrumb_component.rb
Overview
Breadcrumb — navigation breadcrumb trail.
Usage:
Breadcrumb {
text '<a class="section">Home</a>'.html_safe
text '<div class="divider">/</div>'.html_safe
text '<div class="active section">Current</div>'.html_safe
}
Breadcrumb(size: :large)
Constant Summary
Constants inherited from Component
Instance Method Summary collapse
Methods inherited from Component
default, #initialize, #render_in, slot
Constructor Details
This class inherits a constructor from Component
Instance Method Details
#to_s ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'app/components/breadcrumb_component.rb', line 17 def to_s classes = class_names( "ui", size, "breadcrumb" ) tag.div(class: classes) { @content } end |