"> {comp: comp, events: comp.events, parent_id: comp.id} %>> <% if comp.header %> <%= erb :"components/table/header", :locals => {:row => comp.header} %> <% else # This is a workaround for the MDCDataTable component that currently throws an error if it can't find an # mdc-data-table__header-row element. Allos us to create headerless table without JS errors %>
<% end %>
<% comp.rows.each do |row| %> <%= erb :"components/table/row", :locals => {:row => row} %> <% end %> <% if comp.footer %> <%= erb :"components/table/footer", :locals => {:row => comp.footer} %> <% end %>
<% if comp.pagination %> <%= erb :"components/table/pagination", :locals => {:comp => comp.pagination} %> <% end %>