4.4 Table View in a new window
The default table display. See the Advanced table component for more options.
Twig: base/table/table.twig
Example
Number | First Name | Last Name | Username |
---|---|---|---|
1 | Jane | Doe | jdoe |
2 | Jamie | Morgan | jmorgan |
3 | Jacob | Smith | jsmith |
Markup
<table class="{{modifier_class}}">
<thead>
<tr>
<th>Number</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Jane</td>
<td>Doe</td>
<td>jdoe</td>
</tr>
<tr>
<td>2</td>
<td>Jamie</td>
<td>Morgan</td>
<td>jmorgan</td>
</tr>
<tr>
<td>3</td>
<td>Jacob</td>
<td>Smith</td>
<td>jsmith</td>
</tr>
</tbody>
</table>