Class: DsfrComponent::SideMenuComponent
- Defined in:
- app/components/dsfr_component/side_menu_component.rb
Defined Under Namespace
Classes: ItemComponent
Constant Summary
Constants inherited from Base
Base::HEADING_LEVELS, Base::SIZES
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(title:, html_attributes: {}) ⇒ SideMenuComponent
constructor
A new instance of SideMenuComponent.
Constructor Details
#initialize(title:, html_attributes: {}) ⇒ SideMenuComponent
Returns a new instance of SideMenuComponent.
6 7 8 9 10 |
# File 'app/components/dsfr_component/side_menu_component.rb', line 6 def initialize(title:, html_attributes: {}) @title = title super(html_attributes:) end |