Class: Blacklight::HeaderComponent
- Defined in:
- app/components/blacklight/header_component.rb
Constant Summary
Constants inherited from Component
Instance Attribute Summary collapse
-
#blacklight_config ⇒ Object
readonly
Returns the value of attribute blacklight_config.
Instance Method Summary collapse
-
#before_render ⇒ Object
Hack so that the default lambdas are triggered so that we don’t have to do c.with_top_bar() in the call.
-
#initialize(blacklight_config:) ⇒ HeaderComponent
constructor
A new instance of HeaderComponent.
Methods inherited from Component
Constructor Details
#initialize(blacklight_config:) ⇒ HeaderComponent
Returns a new instance of HeaderComponent.
13 14 15 |
# File 'app/components/blacklight/header_component.rb', line 13 def initialize(blacklight_config:) @blacklight_config = blacklight_config end |
Instance Attribute Details
#blacklight_config ⇒ Object (readonly)
Returns the value of attribute blacklight_config.
17 18 19 |
# File 'app/components/blacklight/header_component.rb', line 17 def blacklight_config @blacklight_config end |
Instance Method Details
#before_render ⇒ Object
Hack so that the default lambdas are triggered so that we don’t have to do c.with_top_bar() in the call.
21 22 23 24 |
# File 'app/components/blacklight/header_component.rb', line 21 def before_render set_slot(:top_bar, nil) unless set_slot(:search_bar, nil) unless end |