Module: UI::TableRowBehavior
- Included in:
- TableRow, TableRowComponent
- Defined in:
- app/behaviors/ui/table_row_behavior.rb
Overview
UI::TableRowBehavior
Instance Method Summary collapse
Instance Method Details
#render_row(&content_block) ⇒ Object
13 14 15 16 |
# File 'app/behaviors/ui/table_row_behavior.rb', line 13 def render_row(&content_block) all_attributes = row_html_attributes.deep_merge(@attributes) content_tag(:tr, **all_attributes, &content_block) end |
#row_classes ⇒ Object
22 23 24 25 26 27 |
# File 'app/behaviors/ui/table_row_behavior.rb', line 22 def row_classes TailwindMerge::Merger.new.merge([ row_base_classes, @classes ].compact.join(" ")) end |
#row_html_attributes ⇒ Object
18 19 20 |
# File 'app/behaviors/ui/table_row_behavior.rb', line 18 def row_html_attributes {class: row_classes} end |