浏览代码

Add showLoading and hideLoading methods.

zhixin 11 年之前
父节点
当前提交
ef8dc4dce6
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      src/bootstrap-table.js

+ 10 - 1
src/bootstrap-table.js

@@ -760,6 +760,14 @@
         return this.$el_;
     };
 
+    BootstrapTable.prototype.showLoading = function() {
+        this.$loading.show();
+    };
+
+    BootstrapTable.prototype.hideLoading = function() {
+        this.$loading.hide();
+    };
+
 
     // BOOTSTRAP TABLE PLUGIN DEFINITION
     // =======================
@@ -769,7 +777,8 @@
                 'getSelections',
                 'load', 'append', 'mergeCells',
                 'checkAll', 'uncheckAll',
-                'destroy', 'resetView'
+                'destroy', 'resetView',
+                'showLoading', 'hideLoading'
             ],
             value;