Class: Daisy::DataDisplay::TableComponent::BodyComponent

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

Overview

A component for rendering the table body (<tbody>) section. Contains rows of data.

Instance Method Summary collapse

Methods inherited from LocoMotion::BasicComponent

name

Instance Method Details

#before_renderObject



155
156
157
# File 'app/components/daisy/data_display/table_component.rb', line 155

def before_render
  set_tag_name :component, :tbody
end

#callObject



159
160
161
162
163
164
165
# File 'app/components/daisy/data_display/table_component.rb', line 159

def call
  part(:component) do
    rows.each do |row|
      concat(row)
    end
  end
end