ソースを参照

Merge pull request #2012 from thornomad/feature/add-data-to-post-body-tirigger

feat(js): add data variable to post-body event
wenzhixin 9 年 前
コミット
66c0a371a9
2 ファイル変更2 行追加2 行削除
  1. 1 1
      docs/_i18n/en/documentation/events.md
  2. 1 1
      src/bootstrap-table.js

+ 1 - 1
docs/_i18n/en/documentation/events.md

@@ -204,7 +204,7 @@ $('#table').on('event-name.bs.table', function (e, arg1, arg2, ...) {
     <tr>
         <td>onPostBody</td>
         <td>post-body.bs.table</td>
-        <td>none</td>
+        <td>data</td>
         <td>Fires after the table body is rendered and available in the DOM</td>
     </tr>
     <tr>

+ 1 - 1
src/bootstrap-table.js

@@ -1829,7 +1829,7 @@
         this.updateSelected();
         this.resetView();
 
-        this.trigger('post-body');
+        this.trigger('post-body', data);
     };
 
     BootstrapTable.prototype.initServer = function (silent, query) {