ソースを参照

Merge pull request #695 from djhvscf/master

Updated the getData documentation
文翼 10 年 前
コミット
fa806b2083

+ 2 - 2
docs/_i18n/en/documentation/methods.md

@@ -29,8 +29,8 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
     </tr>
     <tr>
         <td>getData</td>
-        <td>none</td>
-        <td>Get the loaded data of table.</td>
+        <td>useCurrentPage</td>
+        <td>Get the loaded data of table. If you set the useCurrentPage to true the method will return the data in the current page</td>
     </tr>
     <tr>
         <td>load</td>

+ 3 - 2
docs/_i18n/es/documentation/methods.md

@@ -29,8 +29,9 @@ Sintaxis para llamar a un método: `$('#table').bootstrapTable('method', paramet
     </tr>
     <tr>
         <td>getData</td>
-        <td>none</td>
-        <td>Retorna los datos cargados en la tabla.</td>
+        <td>useCurrentPage</td>
+        <td>Retorna los datos cargados en la tabla. Si se setea useCurrentPage a true se devolverá los datos mostrados en la página
+        actual</td>
     </tr>
     <tr>
         <td>load</td>

+ 7 - 1
src/extensions/resizable/bootstrap-table-resizable.js

@@ -21,7 +21,7 @@
             minWidth: that.options.minWidth,
             hoverCursor: that.options.hoverCursor,
             dragCursor: that.options.dragCursor,
-            onResize: that.options.onResizableResize,
+            onResize: that.onResize,
             onDrag: that.options.onResizableDrag
         });
     };
@@ -84,4 +84,10 @@
             initResizable(this);
         }
     };
+
+    BootstrapTable.prototype.onResize = function (e) {
+        var that = $(e.currentTarget);
+        that.bootstrapTable('resetView');
+        that.data('bootstrap.table').options.onResizableResize.apply(e);
+    }
 })(jQuery);