Class: Blacklight::ConstraintComponent

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

Constant Summary

Constants inherited from Component

Blacklight::Component::EXCLUDE_VARIABLES

Instance Method Summary collapse

Methods inherited from Component

compiler, config, #inspect

Constructor Details

#initialize(facet_item_presenter:, classes: 'filter', layout: Blacklight::ConstraintLayoutComponent) ⇒ ConstraintComponent

Returns a new instance of ConstraintComponent.



7
8
9
10
11
# File 'app/components/blacklight/constraint_component.rb', line 7

def initialize(facet_item_presenter:, classes: 'filter', layout: Blacklight::ConstraintLayoutComponent)
  @facet_item_presenter = facet_item_presenter
  @classes = classes
  @layout = layout
end