Class: UI::PaginationItemComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::PaginationItemComponent
- Includes:
- PaginationItemBehavior
- Defined in:
- app/view_components/ui/pagination_item_component.rb
Overview
Pagination Item component (ViewComponent) List item wrapper for pagination elements
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(attributes: {}) ⇒ PaginationItemComponent
constructor
A new instance of PaginationItemComponent.
Methods included from PaginationItemBehavior
Constructor Details
#initialize(attributes: {}) ⇒ PaginationItemComponent
Returns a new instance of PaginationItemComponent.
9 10 11 |
# File 'app/view_components/ui/pagination_item_component.rb', line 9 def initialize(attributes: {}) @attributes = attributes end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'app/view_components/ui/pagination_item_component.rb', line 13 def call content_tag :li, content, **item_html_attributes end |