Class: Blacklight::SearchContext::ServerItemPaginationComponent
- Inherits:
-
Blacklight::SearchContextComponent
- Object
- ViewComponent::Base
- Component
- Blacklight::SearchContextComponent
- Blacklight::SearchContext::ServerItemPaginationComponent
- Defined in:
- app/components/blacklight/search_context/server_item_pagination_component.rb
Instance Method Summary collapse
-
#initialize(search_context:, search_session:, current_document:) ⇒ ServerItemPaginationComponent
constructor
A new instance of ServerItemPaginationComponent.
Methods inherited from Blacklight::SearchContextComponent
#item_page_entry_info, #link_to_next_document, #link_to_previous_document, #render?
Methods inherited from Component
reset_compiler!, sidecar_files, upstream_sidecar_files
Constructor Details
#initialize(search_context:, search_session:, current_document:) ⇒ ServerItemPaginationComponent
Returns a new instance of ServerItemPaginationComponent.
8 9 10 11 12 |
# File 'app/components/blacklight/search_context/server_item_pagination_component.rb', line 8 def initialize(search_context:, search_session:, current_document:) @search_context = search_context @search_session = search_session @current_document_id = current_document.id end |