Class: UI::PaginationContent
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::PaginationContent
- Includes:
- PaginationContentBehavior
- Defined in:
- app/components/ui/pagination_content.rb
Overview
Pagination Content component (Phlex) List container for pagination items
Instance Method Summary collapse
-
#initialize(classes: "", attributes: {}) ⇒ PaginationContent
constructor
A new instance of PaginationContent.
- #view_template(&block) ⇒ Object
Methods included from PaginationContentBehavior
#content_base_classes, #content_classes, #content_html_attributes
Constructor Details
#initialize(classes: "", attributes: {}) ⇒ PaginationContent
Returns a new instance of PaginationContent.
10 11 12 13 14 |
# File 'app/components/ui/pagination_content.rb', line 10 def initialize(classes: "", attributes: {}, **) @classes = classes @attributes = attributes super() end |
Instance Method Details
#view_template(&block) ⇒ Object
16 17 18 |
# File 'app/components/ui/pagination_content.rb', line 16 def view_template(&block) ul(**content_html_attributes, &block) end |