Class: UI::SheetHeaderComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::SheetHeaderComponent
- Includes:
- SheetHeaderBehavior
- Defined in:
- app/view_components/ui/sheet_header_component.rb
Overview
Sheet header component (ViewComponent)
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "") ⇒ SheetHeaderComponent
constructor
A new instance of SheetHeaderComponent.
Methods included from SheetHeaderBehavior
#sheet_header_base_classes, #sheet_header_classes, #sheet_header_html_attributes
Constructor Details
#initialize(classes: "") ⇒ SheetHeaderComponent
Returns a new instance of SheetHeaderComponent.
14 15 16 |
# File 'app/view_components/ui/sheet_header_component.rb', line 14 def initialize(classes: "") @classes = classes end |
Instance Method Details
#call ⇒ Object
18 19 20 |
# File 'app/view_components/ui/sheet_header_component.rb', line 18 def call content_tag :div, content, **sheet_header_html_attributes end |