Class: Daisy::DataDisplay::TableComponent::BodyRowComponent

Inherits:
LocoMotion::BasicComponent show all
Defined in:
app/components/daisy/data_display/table_component.rb

Overview

A component for rendering table rows (<tr>) containing data cells.

Instance Method Summary collapse

Methods inherited from LocoMotion::BasicComponent

name

Instance Method Details

#before_renderObject



132
133
134
# File 'app/components/daisy/data_display/table_component.rb', line 132

def before_render
  set_tag_name :component, :tr
end

#callObject



136
137
138
139
140
141
142
# File 'app/components/daisy/data_display/table_component.rb', line 136

def call
  part(:component) do
    columns.each do |column|
      concat(column)
    end
  end
end