Class: Blacklight::Search::SidebarComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/blacklight/search/sidebar_component.rb

Constant Summary

Constants inherited from Component

Component::EXCLUDE_VARIABLES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Component

compiler, config, #inspect

Constructor Details

#initialize(blacklight_config:, response:, view_config:) ⇒ SidebarComponent

Returns a new instance of SidebarComponent.



6
7
8
9
10
# File 'app/components/blacklight/search/sidebar_component.rb', line 6

def initialize(blacklight_config:, response:, view_config:)
  @blacklight_config = blacklight_config
  @response = response
  @group_component_class = view_config.facet_group_component || Blacklight::Response::FacetGroupComponent
end

Instance Attribute Details

#group_component_classObject (readonly)

Returns the value of attribute group_component_class.



12
13
14
# File 'app/components/blacklight/search/sidebar_component.rb', line 12

def group_component_class
  @group_component_class
end

#responseObject (readonly)

Returns the value of attribute response.



12
13
14
# File 'app/components/blacklight/search/sidebar_component.rb', line 12

def response
  @response
end