Class: DsfrComponent::HeaderComponent
- Defined in:
- app/components/dsfr_component/header_component.rb
Defined Under Namespace
Classes: DirectLinkComponent, DirectLinkDropdownComponent, ToolLinkComponent
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(logo_text:, title:, tagline: nil, classes: [], html_attributes: {}) ⇒ HeaderComponent
constructor
A new instance of HeaderComponent.
Constructor Details
#initialize(logo_text:, title:, tagline: nil, classes: [], html_attributes: {}) ⇒ HeaderComponent
Returns a new instance of HeaderComponent.
12 13 14 15 16 17 18 |
# File 'app/components/dsfr_component/header_component.rb', line 12 def initialize(logo_text:, title:, tagline: nil, classes: [], html_attributes: {}) @logo_text = logo_text @title = title @tagline = tagline super(classes: classes, html_attributes: html_attributes) end |