Sha256: e501dd751ae8a2e9e0ebf218bdd4bbfb78dfbaed6d4735bfb640ac4f6242777c
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
# frozen_string_literal: true module Blacklight module Response class FacetGroupComponent < ::ViewComponent::Base def initialize(response:, fields: [], title: nil, id: nil) @response = response @fields = fields @title = title @id = id ? "facets-#{id}" : 'facets' @panel_id = id ? "facet-panel-#{id}-collapse" : 'facet-panel-collapse' end def render? @view_context.has_facet_values?(@fields, @response) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-7.11.1 | app/components/blacklight/response/facet_group_component.rb |