Browse Source

Merge pull request #3115 from bliaxiong/develop

Add usage example.
Dennis Hernández 8 years ago
parent
commit
3ba87db7f7
1 changed files with 13 additions and 0 deletions
  1. 13 0
      docs/_i18n/en/getting-started/usage.md

+ 13 - 0
docs/_i18n/en/getting-started/usage.md

@@ -64,6 +64,19 @@ We can also use remote url data by setting `data-url="data1.json"` on a normal t
     </thead>
 </table>
 ```
+You can also add `pagination`, `search`, and `sorting` to a table like the following table.
+
+```html
+<table data-pagination="true" data-search="true" data-toggle="table" data-url="data1.json">
+    <thead>
+        <tr>
+            <th data-sortable="true" data-field="id">Item ID</th>
+            <th data-field="name">Item Name</th>
+            <th data-field="price">Item Price</th>
+        </tr>
+    </thead>
+</table>
+```
 
 ## Via JavaScript