Class: FoxTail::Table::RowComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- FoxTail::Table::RowComponent
- Defined in:
- app/components/fox_tail/table/row_component.rb
Instance Method Summary collapse
Instance Method Details
#before_render ⇒ Object
15 16 17 18 19 |
# File 'app/components/fox_tail/table/row_component.rb', line 15 def before_render super html_attributes[:class] = classnames theme.apply(:root, self), html_class end |
#call ⇒ Object
21 22 23 24 25 |
# File 'app/components/fox_tail/table/row_component.rb', line 21 def call content_tag :tr, html_attributes do columns.each { |column| concat column } end end |