Browse Source

Add showLoading and hideLoading methods.

zhixin 11 years ago
parent
commit
ef8dc4dce6
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/bootstrap-table.js

+ 10 - 1
src/bootstrap-table.js

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