x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<div class="vt-table--container"><table class="vt-table"> <thead class="vt-table--head"> <tr> <th class="vt-table--header" scope="col" > # </th> <th class="vt-table--header" scope="col" > Name </th> <th class="vt-table--header" scope="col" > Email </th> </tr> <tbody class="vt-table--body"> <tr class="vt-table--row group" > <td class="vt-table--division" > 1 </td> <td class="vt-table--division" > Alice </td> <td class="vt-table--division" > alice@example.com </td> </tr> <tr class="vt-table--row group" > <td class="vt-table--division" > 2 </td> <td class="vt-table--division" > Bob </td> <td class="vt-table--division" > bob@example.com </td> </tr> <tr class="vt-table--row group" > <td class="vt-table--division" > 3 </td> <td class="vt-table--division" > Charlie </td> <td class="vt-table--division" > charlie@example.com </td> </tr> </tbody> </table></div>No params configured.
No notes provided.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<%= vt_table do |table| %> <% table.with_header.with_content("#") %> <% table.with_header.with_content("Name") %> <% table.with_header.with_content("Email") %> <% users.each do |user| %> <% table.with_row do |row| %> <% row.with_division.with_content(user.id) %> <% row.with_division.with_content(user.name) %> <% row.with_division.with_content(user.email) %> <% end %> <% end %><% end %><%# slim= vt_table do |table| - table.with_header.with_content("id") - table.with_header.with_content("name") - table.with_header.with_content("email") - users.each do |user| - table.with_row do |row| - row.with_division.with_content(user.id) - row.with_division.with_content(user.name) - row.with_division.with_content(user.email)%>