views/mdc/components/table/header.erb
<tr class="mdc-data-table__header-row"
style="<%= "background-color: #{row.color};" if row.color %>">
<%= erb :"components/table/checkbox", :locals => {:row=> row, :type=> 'header'} %>
<% row.columns.each do |col| %>
<th id="<%= col.id%>"
class="mdc-data-table__header-cell
<%= "v-align-#{col.align}" %>
<%= 'v-actionable' if col.events %>"
role="columnheader" scope="col"
<%= erb :"components/event", :locals => {comp: col, events: col.events, parent_id: col.event_parent_id}%>
style="<%= "background-color: #{col.color};" if col.color %>">
<%= expand_text(col.value&.text) %>
<%= erb :"components/render", :locals => {:components => col.components, :scope => nil} %>
</th>
<%= erb :"components/tooltip", :locals => {comp: col.tooltip, parent_id: col.id} %>
<% end %>
</tr>