From b777a03857cba6322929e3f11a4bb14d0338d160 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 14 Nov 2018 14:43:30 +0800 Subject: Update Docs examples --- docs/elements/tables.html | 66 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 60 insertions(+), 6 deletions(-) (limited to 'docs/elements/tables.html') 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 @@

Tables include default styles for tables and data sets.

- +
@@ -238,8 +238,62 @@

Add the table class to any <table> element. - The class will add padding, border and emphasized table header. - Use the table-striped class to <table> to add zebra striped style. + The class will add padding, border and emphasized table header. +

+
<table class="table">
+  <thead>
+    <tr>
+      <th>name</th>
+      <th>genre</th>
+      <th>release date</th>
+    </tr>
+  </thead>
+  <tbody>
+    <tr class="active">
+      <td>The Shawshank Redemption</td>
+      <td>Crime, Drama</td>
+      <td>14 October 1994</td>
+    </tr>
+  </tbody>
+</table>
+
+

Striped tables

+
+
+
Name
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameGenreRelease date
The Shawshank RedemptionCrime, Drama14 October 1994
The GodfatherCrime, Drama24 March 1972
Schindler's ListBiography, Drama, History4 February 1994
Se7enCrime, Drama, Mystery22 September 1995
+
+
+

Use the table-striped class to <table> to add zebra striped style. For hoverable table rows, you can add the table-hover class to enable hover style.

Use the active class to make <tr> element highlighted.

@@ -259,11 +313,11 @@ </tr> </tbody> </table> - +

Scrollable tables

- +
@@ -312,7 +366,7 @@

Add the table-scroll class to <table> to have a horizontally scrollable table.

-
<table class="table table-striped table-scroll">
+            
<table class="table table-scroll">
   ...
 </table>
 
-- cgit v1.3.1-26-gb76a
Name