Class: UI::TableHeaderComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::TableHeaderComponent
- Includes:
- TableHeaderBehavior
- Defined in:
- app/view_components/ui/table_header_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ TableHeaderComponent
constructor
A new instance of TableHeaderComponent.
Methods included from TableHeaderBehavior
#header_classes, #header_html_attributes, #render_header
Constructor Details
#initialize(classes: "", **attributes) ⇒ TableHeaderComponent
Returns a new instance of TableHeaderComponent.
11 12 13 14 |
# File 'app/view_components/ui/table_header_component.rb', line 11 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
16 17 18 19 20 |
# File 'app/view_components/ui/table_header_component.rb', line 16 def call content_tag :thead, **header_html_attributes.deep_merge(@attributes) do safe_join(rows) end end |