Class: UI::TableFooterComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::TableFooterComponent
- Includes:
- TableFooterBehavior
- Defined in:
- app/view_components/ui/table_footer_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", **attributes) ⇒ TableFooterComponent
constructor
A new instance of TableFooterComponent.
Methods included from TableFooterBehavior
#footer_classes, #footer_html_attributes, #render_footer
Constructor Details
#initialize(classes: "", **attributes) ⇒ TableFooterComponent
Returns a new instance of TableFooterComponent.
11 12 13 14 |
# File 'app/view_components/ui/table_footer_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_footer_component.rb', line 16 def call content_tag :tfoot, **.deep_merge(@attributes) do safe_join(rows) end end |