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