Class: DsfrComponent::SideMenuComponent

Inherits:
Base
  • Object
show all
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

#html_attributes

Instance Method Summary collapse

Constructor Details

#initialize(title:, html_attributes: {}) ⇒ SideMenuComponent

Returns a new instance of SideMenuComponent.

Parameters:

  • title (String)

    title of the side menu



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