Class: PhlexKit::BreadcrumbLink
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::BreadcrumbLink
- Defined in:
- app/components/phlex_kit/breadcrumb/breadcrumb_link.rb
Instance Method Summary collapse
-
#initialize(href: "#", **attrs) ⇒ BreadcrumbLink
constructor
A new instance of BreadcrumbLink.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(href: "#", **attrs) ⇒ BreadcrumbLink
Returns a new instance of BreadcrumbLink.
3 4 5 6 |
# File 'app/components/phlex_kit/breadcrumb/breadcrumb_link.rb', line 3 def initialize(href: "#", **attrs) @href = href @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
7 |
# File 'app/components/phlex_kit/breadcrumb/breadcrumb_link.rb', line 7 def view_template(&) = a(**mix({ href: @href, class: "pk-breadcrumb-link" }, @attrs), &) |