Class: Blacklight::Search::SidebarComponent
- Inherits:
-
Component
- Object
- ViewComponent::Base
- Component
- Blacklight::Search::SidebarComponent
- Defined in:
- app/components/blacklight/search/sidebar_component.rb
Instance Attribute Summary collapse
-
#classes ⇒ Object
readonly
Returns the value of attribute classes.
-
#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:, classes: nil) ⇒ SidebarComponent
constructor
A new instance of SidebarComponent.
Methods inherited from Component
reset_compiler!, sidecar_files, upstream_sidecar_files
Constructor Details
#initialize(blacklight_config:, response:, view_config:, classes: nil) ⇒ SidebarComponent
Returns a new instance of SidebarComponent.
6 7 8 9 10 11 |
# File 'app/components/blacklight/search/sidebar_component.rb', line 6 def initialize(blacklight_config:, response:, view_config:, classes: nil) @blacklight_config = blacklight_config @response = response @group_component_class = view_config.facet_group_component @classes = classes end |
Instance Attribute Details
#classes ⇒ Object (readonly)
Returns the value of attribute classes.
13 14 15 |
# File 'app/components/blacklight/search/sidebar_component.rb', line 13 def classes @classes end |
#group_component_class ⇒ Object (readonly)
Returns the value of attribute group_component_class.
13 14 15 |
# File 'app/components/blacklight/search/sidebar_component.rb', line 13 def group_component_class @group_component_class end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
13 14 15 |
# File 'app/components/blacklight/search/sidebar_component.rb', line 13 def response @response end |