浏览代码

Add usage example.

Blia Xiong 8 年之前
父节点
当前提交
8749f80f65
共有 1 个文件被更改,包括 13 次插入0 次删除
  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>
     </thead>
 </table>
 </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
 ## Via JavaScript