Sha256: bc4f74b008d9a17ca0f0acfcbefe952d19dd689ad90789c16c4a17fa2f0b4196

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

<%= content_tag :table, html_attributes do %>
  <%= caption if caption? %>
  <%= content_tag :thead, header, class: theme.apply(:thead, self) if header? %>
  <%= content_tag :tbody, class: theme.apply(:tbody, self) do %>
    <% rows.each do |row| %>
      <%= row %>
    <% end %>
  <% end %>
  <%= content_tag :tfoot, footer, class: theme.apply(:tfoot, self) if footer? %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fox_tail-0.2.1 app/components/fox_tail/table_component.html.erb
fox_tail-0.2.0 app/components/fox_tail/table_component.html.erb
fox_tail-0.1.1 app/components/fox_tail/table_component.html.erb
fox_tail-0.1.0 app/components/fox_tail/table_component.html.erb