浏览代码

Update README.md

zhixin 11 年之前
父节点
当前提交
071a04eff0
共有 2 个文件被更改,包括 6 次插入11 次删除
  1. 2 0
      README.md
  2. 4 11
      docs/test.html

+ 2 - 0
README.md

@@ -24,6 +24,8 @@ The table displays data in a tabular format and offers rich support to radio, ch
 - [x] Fix bug: sorter does not work in some case.
 - [x] Add `bootstrap-table-nl-NL.js`.
 - [x] Support search without data-field set.
+- [x] Fix #81: Allow the `class` to be applied to the radio or checkbox row.
+- [x] Fix #135, #142: Search use formated data.
 
 ## Features
 

+ 4 - 11
docs/test.html

@@ -25,10 +25,10 @@
            data-show-refresh="true"
            data-show-toggle="true"
            data-pagination="true"
-           data-height="500"
-           data-query-params="queryParams">
+           data-height="500">
         <thead>
         <tr>
+            <th data-field="id" data-formatter="idFormatter">ID</th>
             <th data-field="name">Item Name</th>
             <th data-field="price">Item Price</th>
         </tr>
@@ -78,15 +78,8 @@
         });
     }
 
-    // url: /examples/bootstrap_table/data?offset=0&limit=10&search=test
-    function queryParams(params) {
-        return {
-            limit: params.pageSize,
-            offset: params.pageSize * (params.pageNumber - 1),
-            search: params.searchText,
-            name: params.sortName,
-            order: params.sortOrder
-        };
+    function idFormatter(value) {
+        return value + 100;
     }
 </script>
 </body>