Class: Panda::Core::Admin::BreadcrumbComponent
- Defined in:
- app/components/panda/core/admin/breadcrumb_component.rb
Overview
Breadcrumb navigation component with responsive behavior.
Shows a "Back" link on mobile and full breadcrumb trail on larger screens. Follows Tailwind UI Plus pattern for breadcrumb navigation.
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#show_back ⇒ Object
readonly
Returns the value of attribute show_back.
Instance Method Summary collapse
-
#initialize(items: [], show_back: true, **attrs) ⇒ BreadcrumbComponent
constructor
A new instance of BreadcrumbComponent.
Constructor Details
#initialize(items: [], show_back: true, **attrs) ⇒ BreadcrumbComponent
Returns a new instance of BreadcrumbComponent.
29 30 31 32 33 |
# File 'app/components/panda/core/admin/breadcrumb_component.rb', line 29 def initialize(items: [], show_back: true, **attrs) @items = items @show_back = show_back super(**attrs) end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
35 36 37 |
# File 'app/components/panda/core/admin/breadcrumb_component.rb', line 35 def items @items end |
#show_back ⇒ Object (readonly)
Returns the value of attribute show_back.
35 36 37 |
# File 'app/components/panda/core/admin/breadcrumb_component.rb', line 35 def show_back @show_back end |