Class: Daisy::DataDisplay::TableComponent::HeadComponent

Inherits:
LocoMotion::BasicComponent show all
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

name

Instance Method Details

#before_renderObject



99
100
101
# File 'app/components/daisy/data_display/table_component.rb', line 99

def before_render
  set_tag_name :component, :thead
end

#callObject



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
    (:tr) do
      columns.each do |column|
        concat(column)
      end
    end
  end
end