Sha256: d4bbcdc60d982c853d8e658e77aaea4b0b35ea4611a7e45b071e4c3b02a07cf6
Contents?: true
Size: 1.17 KB
Versions: 12
Compression:
Stored size: 1.17 KB
Contents
<div class="v-data-table mdc-data-table <%= 'v-no-border' unless comp.border %>" style="<%= "width:#{comp.width};" if comp.width %>"> <table class="mdc-data-table__table" <%= partial "components/event", :locals => {comp: comp, events: comp.events, parent_id: comp.id} if comp.events&.any? %>> <% if comp.header %> <thead> <%= partial "components/table/header", :locals => {:row => comp.header} %> </thead> <% 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 %> <div class="mdc-data-table__header-row v-hidden"/> <% end %> <tbody class="mdc-data-table__content"> <% comp.rows.each do |row| %> <%= partial "components/table/row", :locals => {:row => row} %> <% end %> </tbody> <% if comp.footer %> <tfoot> <%= partial "components/table/footer", :locals => {:row => comp.footer} %> </tfoot> <% end %> </table> </div> <% if comp.pagination %> <%= partial "components/table/pagination", :locals => {:comp => comp.pagination} %> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems