Class: UI::PaginationComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::PaginationComponent
- Includes:
- PaginationBehavior
- Defined in:
- app/view_components/ui/pagination_component.rb
Overview
Pagination component (ViewComponent) Container for pagination navigation
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", attributes: {}) ⇒ PaginationComponent
constructor
A new instance of PaginationComponent.
Methods included from PaginationBehavior
#pagination_base_classes, #pagination_classes, #pagination_html_attributes
Constructor Details
#initialize(classes: "", attributes: {}) ⇒ PaginationComponent
Returns a new instance of PaginationComponent.
10 11 12 13 |
# File 'app/view_components/ui/pagination_component.rb', line 10 def initialize(classes: "", attributes: {}) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
15 16 17 |
# File 'app/view_components/ui/pagination_component.rb', line 15 def call content_tag :nav, content, **pagination_html_attributes end |