Class: Blacklight::Search::SidebarComponent
- Inherits:
-
Component
- Object
- ViewComponent::Base
- Component
- Blacklight::Search::SidebarComponent
- Defined in:
- app/components/blacklight/search/sidebar_component.rb
Constant Summary
Constants inherited from Component
Instance Attribute Summary collapse
-
#group_component_class ⇒ Object
readonly
Returns the value of attribute group_component_class.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(blacklight_config:, response:, view_config:) ⇒ SidebarComponent
constructor
A new instance of SidebarComponent.
Methods inherited from Component
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_class ⇒ Object (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 |
#response ⇒ Object (readonly)
Returns the value of attribute response.
12 13 14 |
# File 'app/components/blacklight/search/sidebar_component.rb', line 12 def response @response end |