Module: UI::TableFooterBehavior
- Included in:
- TableFooter, TableFooterComponent
- Defined in:
- app/behaviors/ui/table_footer_behavior.rb
Overview
FooterBehavior
Shared behavior for Table Footer (tfoot) component.
Instance Method Summary collapse
Instance Method Details
#footer_classes ⇒ Object
16 17 18 19 20 21 |
# File 'app/behaviors/ui/table_footer_behavior.rb', line 16 def TailwindMerge::Merger.new.merge([ , @classes ].compact.join(" ")) end |
#footer_html_attributes ⇒ Object
12 13 14 |
# File 'app/behaviors/ui/table_footer_behavior.rb', line 12 def {class: } end |
#render_footer(&content_block) ⇒ Object
7 8 9 10 |
# File 'app/behaviors/ui/table_footer_behavior.rb', line 7 def (&content_block) all_attributes = .deep_merge(@attributes) content_tag(:tfoot, **all_attributes, &content_block) end |