Class: UI::PaginationItem

Inherits:
Phlex::HTML
  • Object
show all
Includes:
PaginationItemBehavior
Defined in:
app/components/ui/pagination_item.rb

Overview

Pagination Item component (Phlex) List item wrapper for pagination elements

Instance Method Summary collapse

Methods included from PaginationItemBehavior

#item_html_attributes

Constructor Details

#initialize(attributes: {}) ⇒ PaginationItem

Returns a new instance of PaginationItem.

Parameters:

  • attributes (Hash) (defaults to: {})

    additional HTML attributes



9
10
11
12
# File 'app/components/ui/pagination_item.rb', line 9

def initialize(attributes: {}, **)
  @attributes = attributes
  super()
end

Instance Method Details

#view_template(&block) ⇒ Object



14
15
16
# File 'app/components/ui/pagination_item.rb', line 14

def view_template(&block)
  li(**item_html_attributes, &block)
end