Class: Blacklight::FacetFieldComponent
- Inherits:
-
Component
- Object
- ViewComponent::Base
- Component
- Blacklight::FacetFieldComponent
show all
- Defined in:
- app/components/blacklight/facet_field_component.rb
Constant Summary
Constants inherited
from Component
Component::EXCLUDE_VARIABLES
Instance Method Summary
collapse
Methods inherited from Component
compiler, config, #inspect
Constructor Details
Returns a new instance of FacetFieldComponent.
9
10
11
|
# File 'app/components/blacklight/facet_field_component.rb', line 9
def initialize(facet_field:)
@facet_field = facet_field
end
|
Instance Method Details
17
18
19
|
# File 'app/components/blacklight/facet_field_component.rb', line 17
def
"#{html_id}-header"
end
|
#html_id ⇒ Object
13
14
15
|
# File 'app/components/blacklight/facet_field_component.rb', line 13
def html_id
"facet-#{@facet_field.key.parameterize}"
end
|