Class: Daisy::DataDisplay::TableComponent::HeadComponent
- Inherits:
-
LocoMotion::BasicComponent
- Object
- LocoMotion::BaseComponent
- LocoMotion::BasicComponent
- Daisy::DataDisplay::TableComponent::HeadComponent
- Defined in:
- app/components/daisy/data_display/table_component.rb
Overview
A component for rendering the table header (<thead>) section. Contains
header columns that define the structure of the table.
Instance Method Summary collapse
Methods inherited from LocoMotion::BasicComponent
Instance Method Details
#before_render ⇒ Object
99 100 101 |
# File 'app/components/daisy/data_display/table_component.rb', line 99 def before_render set_tag_name :component, :thead end |
#call ⇒ Object
103 104 105 106 107 108 109 110 111 |
# File 'app/components/daisy/data_display/table_component.rb', line 103 def call part(:component) do content_tag(:tr) do columns.each do |column| concat(column) end end end end |