Sha256: dcbf024667e6fe5858b2af266b06c56e9bbb267db9e243f801674e19d3d2d2e6
Contents?: true
Size: 741 Bytes
Versions: 9
Compression:
Stored size: 741 Bytes
Contents
# frozen_string_literal: true module Blacklight module Response # Render a pagination widget for search results class PaginationComponent < Blacklight::Component # @param [Blacklight::Response] response # @param [Hash] html html options for the pagination container def initialize(response:, html: {}, **pagination_args) @response = response @html = html @pagination_args = pagination_args end def html_attr { aria: { label: t('views.pagination.aria.container_label') } }.merge(@html) end def pagination helpers.paginate @response, **Blacklight::Engine.config.blacklight.default_pagination_options, **@pagination_args end end end end
Version data entries
9 entries across 9 versions & 2 rubygems