Skip to content

Commit 8749f80

Browse files
author
Blia Xiong
committed
Add usage example.
1 parent 4228fa6 commit 8749f80

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

docs/_i18n/en/getting-started/usage.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ We can also use remote url data by setting `data-url="data1.json"` on a normal t
6464
</thead>
6565
</table>
6666
```
67+
You can also add `pagination`, `search`, and `sorting` to a table like the following table.
68+
69+
```html
70+
<table data-pagination="true" data-search="true" data-toggle="table" data-url="data1.json">
71+
<thead>
72+
<tr>
73+
<th data-sortable="true" data-field="id">Item ID</th>
74+
<th data-field="name">Item Name</th>
75+
<th data-field="price">Item Price</th>
76+
</tr>
77+
</thead>
78+
</table>
79+
```
6780

6881
## Via JavaScript
6982

0 commit comments

Comments
 (0)