浏览代码

Update togglePagination

zhixin 11 年之前
父节点
当前提交
956cb472c5
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 5 0
      docs/_i18n/en/documentation/methods.md
  2. 2 2
      src/bootstrap-table.js

+ 5 - 0
docs/_i18n/en/documentation/methods.md

@@ -156,5 +156,10 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
         <td>none</td>
         <td>Go to next page.</td>
     </tr>
+    <tr>
+        <td>togglePagination</td>
+        <td>none</td>
+        <td>Toggle the pagination option.</td>
+    </tr>
     </tbody>
 </table>

+ 2 - 2
src/bootstrap-table.js

@@ -1611,7 +1611,6 @@
         'mergeCells',
         'checkAll', 'uncheckAll',
         'check', 'uncheck',
-        'togglePagination',
         'refresh',
         'resetView',
         'destroy',
@@ -1619,7 +1618,8 @@
         'showColumn', 'hideColumn',
         'filterBy',
         'scrollTo',
-        'prevPage', 'nextPage'
+        'prevPage', 'nextPage',
+        'togglePagination'
     ];
 
     $.fn.bootstrapTable = function (option, _relatedTarget) {