jquery.dgtable 0.6.5 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jquery.dgtable 0.6.5
2
+ * jquery.dgtable 0.6.6
3
3
  * git://github.com/danielgindi/jquery.dgtable.git
4
4
  */
5
5
  import jQuery from 'jquery';
@@ -5502,9 +5502,10 @@ DGTable.prototype.removeRow = function (physicalRowIndex, render) {
5502
5502
  * @public
5503
5503
  * @expose
5504
5504
  * @param {number} physicalRowIndex index
5505
+ * @param {boolean} render should render the changes immediately?
5505
5506
  * @returns {DGTable} self
5506
5507
  */
5507
- DGTable.prototype.refreshRow = function (physicalRowIndex) {
5508
+ DGTable.prototype.refreshRow = function (physicalRowIndex, render = true) {
5508
5509
  let that = this,
5509
5510
  p = that.p;
5510
5511
 
@@ -5520,6 +5521,9 @@ DGTable.prototype.refreshRow = function (physicalRowIndex) {
5520
5521
 
5521
5522
  p.virtualListHelper.refreshItemAt(rowIndex);
5522
5523
 
5524
+ if (render)
5525
+ p.virtualListHelper.render();
5526
+
5523
5527
  return this;
5524
5528
  };
5525
5529