浏览代码

sAdd ortable to pagination examples.

zhixin 11 年之前
父节点
当前提交
29fa2112f7
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      docs/examples.html

+ 6 - 6
docs/examples.html

@@ -377,9 +377,9 @@
                         <thead>
                             <tr>
                                 <th data-field="state" data-checkbox="true"></th>
-                                <th data-field="id" data-align="right">Item ID</th>
-                                <th data-field="name" data-align="center">Item Name</th>
-                                <th data-field="price" data-align="">Item Price</th>
+                                <th data-field="id" data-align="right" data-sortable="true">Item ID</th>
+                                <th data-field="name" data-align="center" data-sortable="true">Item Name</th>
+                                <th data-field="price" data-sortable="true" data-sorter="priceSorter">Item Price</th>
                             </tr>
                         </thead>
                     </table>
@@ -403,9 +403,9 @@
                         <thead>
                         <tr>
                             <th data-field="state" data-checkbox="true"></th>
-                            <th data-field="id" data-align="right">Item ID</th>
-                            <th data-field="name" data-align="center">Item Name</th>
-                            <th data-field="price" data-align="">Item Price</th>
+                            <th data-field="id" data-align="right" data-sortable="true">Item ID</th>
+                            <th data-field="name" data-align="center" data-sortable="true">Item Name</th>
+                            <th data-field="price" data-sortable="true">Item Price</th>
                         </tr>
                         </thead>
                     </table>