Sha256: 8a67d6fa44e9f42dff27271a02a10d2fa9001e4f8b5bb30062258f6a04caa3df

Contents?: true

Size: 420 Bytes

Versions: 21

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  class FacetFieldComponent < Blacklight::Component
    renders_one :label
    renders_one :body

    # @param [Blacklight::FacetFieldPresenter] facet_field
    def initialize(facet_field:)
      @facet_field = facet_field
    end

    def html_id
      "facet-#{@facet_field.key.parameterize}"
    end

    def header_html_id
      "#{html_id}-header"
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
blacklight-8.6.1 app/components/blacklight/facet_field_component.rb
blacklight-8.6.0 app/components/blacklight/facet_field_component.rb
blacklight-8.5.1 app/components/blacklight/facet_field_component.rb
blacklight-8.5.0 app/components/blacklight/facet_field_component.rb
blacklight-8.4.0 app/components/blacklight/facet_field_component.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/components/blacklight/facet_field_component.rb
blacklight-8.3.0 app/components/blacklight/facet_field_component.rb
blacklight-8.2.2 app/components/blacklight/facet_field_component.rb
blacklight-8.2.1 app/components/blacklight/facet_field_component.rb
blacklight-8.2.0 app/components/blacklight/facet_field_component.rb
blacklight-8.1.0 app/components/blacklight/facet_field_component.rb
blacklight-8.0.1 app/components/blacklight/facet_field_component.rb
blacklight-8.0.0 app/components/blacklight/facet_field_component.rb
blacklight-8.0.0.beta8 app/components/blacklight/facet_field_component.rb
blacklight-8.0.0.beta7 app/components/blacklight/facet_field_component.rb
blacklight-8.0.0.beta6 app/components/blacklight/facet_field_component.rb
blacklight-8.0.0.beta5 app/components/blacklight/facet_field_component.rb
blacklight-8.0.0.beta4 app/components/blacklight/facet_field_component.rb
blacklight-8.0.0.beta3 app/components/blacklight/facet_field_component.rb
blacklight-8.0.0.beta2 app/components/blacklight/facet_field_component.rb