Class: Compass::Layout::BreadcrumbItem
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Compass::Layout::BreadcrumbItem
- Defined in:
- app/components/compass/layout/breadcrumb_item.rb
Instance Method Summary collapse
Instance Method Details
#icon_text ⇒ Object
11 12 13 14 15 16 |
# File 'app/components/compass/layout/breadcrumb_item.rb', line 11 def icon_text capture do concat pb_rails("icon", props: { color: "text_light_dark", icon: }) if icon.present? concat pb_rails("detail", props: { color: "light", dark: true, text: label }) if label.present? end end |