Class: Daisy::DataDisplay::TableComponent::BodyComponent
- Inherits:
-
LocoMotion::BasicComponent
- Object
- LocoMotion::BaseComponent
- LocoMotion::BasicComponent
- Daisy::DataDisplay::TableComponent::BodyComponent
- 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
Instance Method Details
#before_render ⇒ Object
155 156 157 |
# File 'app/components/daisy/data_display/table_component.rb', line 155 def before_render set_tag_name :component, :tbody end |
#call ⇒ Object
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 |