Summary Files Commits Branches @commit @diff @stats
path: root / docs / elements / tables.html
diff options
context:
space:
mode:
Commitb777a03857cba6322929e3f11a4bb14d0338d160 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-11-14 14:43:30 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2018-11-14 14:43:30 +0800
Files01717734622d0a07907cdf25eb7135a50478a10e /docs/elements/tables.html
Spectre-Dark-Gruvbox-b777a03857cba6322929e3f11a4bb14d0338d160.tar
Spectre-Dark-Gruvbox-b777a03857cba6322929e3f11a4bb14d0338d160.tar.gz
Spectre-Dark-Gruvbox-b777a03857cba6322929e3f11a4bb14d0338d160.zip
Parent26d3d62515b3911f6a3f87e6161b9491cb02d8de (diff)
Update Docs examples
1 files changed, 60 insertions, 6 deletions
-rw-r--r--docs/elements/tables.html66
diff --git a/docs/elements/tables.html b/docs/elements/tables.html
index 4458116..b49a6c5 100644
--- a/docs/elements/tables.html
+++ b/docs/elements/tables.html
@@ -204,7 +204,7 @@
<p>Tables include default styles for tables and data sets.</p>
<div class="docs-demo columns">
<div class="column col-12">
- <table class="table table-striped">
+ <table class="table">
<thead>
<tr>
<th>Name</th>
@@ -238,8 +238,62 @@
</div>
</div>
<p>Add the <code>table</code> class to any &lt;table&gt; element.
- The class will add padding, border and emphasized table header.
- Use the <code>table-striped</code> class to &lt;table&gt; to add zebra striped style.
+ The class will add padding, border and emphasized table header.
+ </p>
+ <pre class="code" data-lang="HTML"><code><span class="hljs-tag">&lt;<span class="hljs-name">table</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"table"</span>&gt;</span>
+ <span class="hljs-tag">&lt;<span class="hljs-name">thead</span>&gt;</span>
+ <span class="hljs-tag">&lt;<span class="hljs-name">tr</span>&gt;</span>
+ <span class="hljs-tag">&lt;<span class="hljs-name">th</span>&gt;</span>name<span class="hljs-tag">&lt;/<span class="hljs-name">th</span>&gt;</span>
+ <span class="hljs-tag">&lt;<span class="hljs-name">th</span>&gt;</span>genre<span class="hljs-tag">&lt;/<span class="hljs-name">th</span>&gt;</span>
+ <span class="hljs-tag">&lt;<span class="hljs-name">th</span>&gt;</span>release date<span class="hljs-tag">&lt;/<span class="hljs-name">th</span>&gt;</span>
+ <span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span>
+ <span class="hljs-tag">&lt;/<span class="hljs-name">thead</span>&gt;</span>
+ <span class="hljs-tag">&lt;<span class="hljs-name">tbody</span>&gt;</span>
+ <span class="hljs-tag">&lt;<span class="hljs-name">tr</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"active"</span>&gt;</span>
+ <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>The Shawshank Redemption<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span>
+ <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>Crime, Drama<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span>
+ <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>14 October 1994<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span>
+ <span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span>
+ <span class="hljs-tag">&lt;/<span class="hljs-name">tbody</span>&gt;</span>
+<span class="hljs-tag">&lt;/<span class="hljs-name">table</span>&gt;</span>
+</code></pre>
+ <h4 class="s-subtitle" id="tables-striped">Striped tables<a class="anchor" href="#tables-striped" aria-hidden="true">#</a></h4>
+ <div class="docs-demo columns">
+ <div class="column col-12">
+ <table class="table table-striped table-hover">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Genre</th>
+ <th>Release date</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>The Shawshank Redemption</td>
+ <td>Crime, Drama</td>
+ <td>14 October 1994</td>
+ </tr>
+ <tr class="active">
+ <td>The Godfather</td>
+ <td>Crime, Drama</td>
+ <td>24 March 1972</td>
+ </tr>
+ <tr>
+ <td>Schindler's List</td>
+ <td>Biography, Drama, History</td>
+ <td>4 February 1994</td>
+ </tr>
+ <tr>
+ <td>Se7en</td>
+ <td>Crime, Drama, Mystery</td>
+ <td>22 September 1995</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ <p>Use the <code>table-striped</code> class to &lt;table&gt; to add zebra striped style.
For hoverable table rows, you can add the <code>table-hover</code> class to enable hover style.
</p>
<p>Use the <code>active</code> class to make &lt;tr&gt; element highlighted.</p>
@@ -259,11 +313,11 @@
<span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">tbody</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">table</span>&gt;</span>
-
</code></pre>
+ <h4 class="s-subtitle" id="tables-scroll">Scrollable tables<a class="anchor" href="#tables-scroll" aria-hidden="true">#</a></h4>
<div class="docs-demo columns">
<div class="column col-12">
- <table class="table table-striped table-scroll">
+ <table class="table table-scroll">
<thead>
<tr>
<th>Name</th>
@@ -312,7 +366,7 @@
</div>
</div>
<p>Add the <code>table-scroll</code> class to &lt;table&gt; to have a horizontally scrollable table.</p>
- <pre class="code" data-lang="HTML"><code><span class="hljs-tag">&lt;<span class="hljs-name">table</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"table table-striped table-scroll"</span>&gt;</span>
+ <pre class="code" data-lang="HTML"><code><span class="hljs-tag">&lt;<span class="hljs-name">table</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"table table-scroll"</span>&gt;</span>
...
<span class="hljs-tag">&lt;/<span class="hljs-name">table</span>&gt;</span>
</code></pre>