Class: Railsboot::Dropdown::HeaderComponent
- Inherits:
-
Component
- Object
- Component
- Railsboot::Dropdown::HeaderComponent
- Defined in:
- app/components/railsboot/dropdown/header_component.rb
Instance Method Summary collapse
-
#initialize(text: "", **html_attributes) ⇒ HeaderComponent
constructor
A new instance of HeaderComponent.
Constructor Details
#initialize(text: "", **html_attributes) ⇒ HeaderComponent
Returns a new instance of HeaderComponent.
2 3 4 5 6 7 8 9 10 |
# File 'app/components/railsboot/dropdown/header_component.rb', line 2 def initialize(text: "", **html_attributes) @text = text @html_attributes = html_attributes @html_attributes[:class] = class_names( "dropdown-header", html_attributes.delete(:class) ) end |