Class: FoxTail::Table::RowComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/fox_tail/table/row_component.rb

Instance Method Summary collapse

Instance Method Details

#before_renderObject



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

#callObject



21
22
23
24
25
# File 'app/components/fox_tail/table/row_component.rb', line 21

def call
   :tr, html_attributes do
    columns.each { |column| concat column }
  end
end