Class: UI::PaginationContentComponent

Inherits:
ViewComponent::Base
  • Object
show all
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

Methods included from PaginationContentBehavior

#content_base_classes, #content_classes, #content_html_attributes

Constructor Details

#initialize(classes: "", attributes: {}) ⇒ PaginationContentComponent

Returns a new instance of PaginationContentComponent.

Parameters:

  • classes (String) (defaults to: "")

    additional CSS classes

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

    additional HTML attributes



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

#callObject



15
16
17
# File 'app/view_components/ui/pagination_content_component.rb', line 15

def call
   :ul, content, **content_html_attributes
end