Pages

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="overflow-auto">
<table class="text-left text-base w-full">
<thead>
<tr class="border-b border-subdued">
<th class="font-semibold px-2 py-3" scope="col">
Name
</th>
<th class="font-semibold px-2 py-3" scope="col">
ID
</th>
</tr>
</thead>
<tbody></tbody>
</table>
<p class="text-base text-center mt-6" data-testid="empty-table-state">There is no information to display</p>
</div>
1
2
3
4
anchor_table(data: [], paginate: true) do |table|
table.with_column(header: "Name", value: -> { it.name.capitalize })
table.with_column(header: "ID", value: :id)
end