Dennis Hernández 10 years ago
parent
commit
6ad2b63ac0
1 changed files with 12 additions and 1 deletions
  1. 12 1
      src/bootstrap-table.js

+ 12 - 1
src/bootstrap-table.js

@@ -289,6 +289,12 @@
         },
         },
         onPostHeader: function () {
         onPostHeader: function () {
             return false;
             return false;
+        },
+        onPreRows: function () {
+            return false;
+        },
+        onPostRows: function () {
+            return false;
         }
         }
     };
     };
 
 
@@ -373,7 +379,9 @@
         'toggle.bs.table': 'onToggle',
         'toggle.bs.table': 'onToggle',
         'pre-body.bs.table': 'onPreBody',
         'pre-body.bs.table': 'onPreBody',
         'post-body.bs.table': 'onPostBody',
         'post-body.bs.table': 'onPostBody',
-        'post-header.bs.table': 'onPostHeader'
+        'post-header.bs.table': 'onPostHeader',
+        'pre-rows.bs.table': 'onPreRows',
+        'post-rows.bs.table': 'onPostRows'
     };
     };
 
 
     BootstrapTable.prototype.init = function () {
     BootstrapTable.prototype.init = function () {
@@ -1332,7 +1340,10 @@
                 '</tr>');
                 '</tr>');
         }
         }
 
 
+        this.trigger('pre-rows');
         this.$body.html(html.join(''));
         this.$body.html(html.join(''));
+        this.trigger('post-rows');
+
 
 
         if (!fixedScroll) {
         if (!fixedScroll) {
             this.scrollTo(0);
             this.scrollTo(0);