Sha256: acea5b1c64c58cd50e9856a1513462850c5bd6167d4f5db286cff2bf98c520c6

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

<%= tag.table(id: @id, class: "hidden md:w-full md:table md:text-sm #{@class}", **@options) do %>
  <thead>
    <tr class="text-left border-b-2 border-gray-lt">
      <% @columns.each do |header| %>
        <th class='px-4 py-3'><%= header %></th>
      <% end %>
    </tr>
  </thead>

  <tbody>
    <% @rows.each_with_index do |row, i| %>
      <tr class='even:bg-gray-ltr'>
        <%= check_box_for(resource_index: i) %>

        <% row.each do |cell| %>
          <td class="px-4 py-3">
            <%= format_cell(cell) %>
          </td>
        <% end %>

        <%= actions(resource_index: i) %>
      </tr>
    <% end %>
  </tbody>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
f_components-0.5.0 app/components/f_components/table/desktop/component.html.erb
f_components-1.0.0 app/components/f_components/table/desktop/component.html.erb
f_components-0.3.0 app/components/f_components/table/desktop/component.html.erb
f_components-0.2.1 app/components/f_components/table/desktop/component.html.erb