Class: PhlexKit::BreadcrumbEllipsis

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/breadcrumb/breadcrumb_ellipsis.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ BreadcrumbEllipsis

Returns a new instance of BreadcrumbEllipsis.



3
# File 'app/components/phlex_kit/breadcrumb/breadcrumb_ellipsis.rb', line 3

def initialize(**attrs) = (@attrs = attrs)

Instance Method Details

#view_templateObject



4
5
6
7
8
9
# File 'app/components/phlex_kit/breadcrumb/breadcrumb_ellipsis.rb', line 4

def view_template
  span(**mix({ class: "pk-breadcrumb-ellipsis", role: "presentation", aria: { hidden: true } }, @attrs)) do
    render Icon.new(:ellipsis, size: nil)
    span(class: "pk-sr-only") { "More" }
  end
end