1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-24 03:54:42 +04:00

tables docs

This commit is contained in:
codecalm
2020-02-23 17:57:58 +01:00
parent 1dabe660fa
commit 959635ec6c
+30 -1
View File
@@ -17,6 +17,35 @@ The `.table` class adds basic styling to a table:
{% include example.html code=code %}
## Responsive tables
Across each breakpoint, use `.table-responsive` class for horizontal scrolling tables. Use `.table-responsive{-sm|-md|-lg|-xl}` as needed to create responsive tables up to a specific breakpoint. From that breakpoint and up, the table will behave normally and not scroll horizontally.
{% capture code %}
<table class="table table-responsive">
<thead>
<tr>
<th>#</th>
{% for i in (1..10) %}
<th class="text-nowrap">Heading {{ i }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for j in (1..2) %}
<tr>
<th>{{ j }}</th>
{% for i in (1..10) %}
<td>Cell</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endcapture %}
{% include example.html code=code %}
## No wrap
Prevents table cell content from wrapping to another line.
@@ -24,4 +53,4 @@ Prevents table cell content from wrapping to another line.
{% capture code %}
{% include ui/table.html nowrap=true responsive=true %}
{% endcapture %}
{% include example.html code=code %}
{% include example.html code=code %}