Sha256: f06971afaa7335ba6648b279c88ea2780cd3b8f103456cfb92e5c0fb6a3830b1

Contents?: true

Size: 459 Bytes

Versions: 46

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  class FacetFieldPaginationComponent < Blacklight::Component
    def initialize(facet_field:)
      @facet_field = facet_field
    end

    def sort_facet_url(sort)
      @facet_field.paginator.params_for_resort_url(sort, @facet_field.search_state.to_h)
    end

    def param_name
      @facet_field.paginator.class.request_keys[:page]
    end

    def render?
      @facet_field.paginator
    end
  end
end

Version data entries

46 entries across 45 versions & 2 rubygems

Version Path
blacklight-7.34.0 app/components/blacklight/facet_field_pagination_component.rb
blacklight-8.0.1 app/components/blacklight/facet_field_pagination_component.rb
blacklight-8.0.0 app/components/blacklight/facet_field_pagination_component.rb
blacklight-8.0.0.beta8 app/components/blacklight/facet_field_pagination_component.rb
blacklight-8.0.0.beta7 app/components/blacklight/facet_field_pagination_component.rb
blacklight-8.0.0.beta6 app/components/blacklight/facet_field_pagination_component.rb
blacklight-8.0.0.beta5 app/components/blacklight/facet_field_pagination_component.rb
blacklight-7.33.1 app/components/blacklight/facet_field_pagination_component.rb
blacklight-8.0.0.beta4 app/components/blacklight/facet_field_pagination_component.rb
blacklight-8.0.0.beta3 app/components/blacklight/facet_field_pagination_component.rb
blacklight-8.0.0.beta2 app/components/blacklight/facet_field_pagination_component.rb
blacklight-8.0.0.beta1 app/components/blacklight/facet_field_pagination_component.rb
blacklight-7.33.0 app/components/blacklight/facet_field_pagination_component.rb
blacklight-7.32.0 app/components/blacklight/facet_field_pagination_component.rb
blacklight-7.31.0 app/components/blacklight/facet_field_pagination_component.rb
blacklight-7.30.0 app/components/blacklight/facet_field_pagination_component.rb
blacklight-7.29.0 app/components/blacklight/facet_field_pagination_component.rb
blacklight-7.28.0 app/components/blacklight/facet_field_pagination_component.rb
blacklight-7.27.1 app/components/blacklight/facet_field_pagination_component.rb
blacklight-7.27.0 app/components/blacklight/facet_field_pagination_component.rb