Class: Arclight::DocumentCollectionContextComponent
- Inherits:
-
SearchResultComponent
- Object
- Blacklight::DocumentComponent
- SearchResultComponent
- Arclight::DocumentCollectionContextComponent
- Defined in:
- app/components/arclight/document_collection_context_component.rb
Overview
Display a single document in the collection
Instance Attribute Summary collapse
-
#blacklight_config ⇒ Object
readonly
Returns the value of attribute blacklight_config.
Attributes inherited from SearchResultComponent
Instance Method Summary collapse
- #classes ⇒ Object
-
#initialize(document: nil, blacklight_config: nil, **kwargs) ⇒ DocumentCollectionContextComponent
constructor
A new instance of DocumentCollectionContextComponent.
Methods inherited from SearchResultComponent
Constructor Details
#initialize(document: nil, blacklight_config: nil, **kwargs) ⇒ DocumentCollectionContextComponent
Returns a new instance of DocumentCollectionContextComponent.
7 8 9 10 |
# File 'app/components/arclight/document_collection_context_component.rb', line 7 def initialize(document: nil, blacklight_config: nil, **kwargs) super(document: document, **kwargs) @blacklight_config = blacklight_config end |
Instance Attribute Details
#blacklight_config ⇒ Object (readonly)
Returns the value of attribute blacklight_config.
12 13 14 |
# File 'app/components/arclight/document_collection_context_component.rb', line 12 def blacklight_config @blacklight_config end |
Instance Method Details
#classes ⇒ Object
14 15 16 |
# File 'app/components/arclight/document_collection_context_component.rb', line 14 def classes (super - ['row'] + ['al-collection-context']).flatten end |