Class: UI::PaginationContentComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::PaginationContentComponent
- Includes:
- PaginationContentBehavior
- Defined in:
- app/view_components/ui/pagination_content_component.rb
Overview
Pagination Content component (ViewComponent) List container for pagination items
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", attributes: {}) ⇒ PaginationContentComponent
constructor
A new instance of PaginationContentComponent.
Methods included from PaginationContentBehavior
#content_base_classes, #content_classes, #content_html_attributes
Constructor Details
#initialize(classes: "", attributes: {}) ⇒ PaginationContentComponent
Returns a new instance of PaginationContentComponent.
10 11 12 13 |
# File 'app/view_components/ui/pagination_content_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_content_component.rb', line 15 def call content_tag :ul, content, **content_html_attributes end |