Module: UI::BreadcrumbBehavior
- Included in:
- Breadcrumb, BreadcrumbComponent
- Defined in:
- app/behaviors/ui/breadcrumb_behavior.rb
Overview
UI::BreadcrumbBehavior
Instance Method Summary collapse
-
#breadcrumb_classes ⇒ Object
Returns combined CSS classes for the breadcrumb container.
-
#breadcrumb_html_attributes ⇒ Object
Returns HTML attributes for the breadcrumb container element.
Instance Method Details
#breadcrumb_classes ⇒ Object
Returns combined CSS classes for the breadcrumb container
34 35 36 37 |
# File 'app/behaviors/ui/breadcrumb_behavior.rb', line 34 def classes_value = respond_to?(:classes, true) ? classes : @classes classes_value || "" end |
#breadcrumb_html_attributes ⇒ Object
Returns HTML attributes for the breadcrumb container element
25 26 27 28 29 30 31 |
# File 'app/behaviors/ui/breadcrumb_behavior.rb', line 25 def attributes_value = respond_to?(:attributes, true) ? attributes : @attributes { class: , "aria-label": "breadcrumb" }.merge(attributes_value || {}) end |