gd-bs 6.9.13 → 6.9.14

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.
@@ -168,7 +168,7 @@ var _Table = /** @class */ (function (_super) {
168
168
  };
169
169
  // Renders a row
170
170
  _Table.prototype.renderRow = function (row, data, rowIdx) {
171
- // See if columns
171
+ // Parse the columns
172
172
  for (var i = 0; i < this.props.columns.length; i++) {
173
173
  // Create the cell
174
174
  this.renderCell(row, this.props.columns[i], data, rowIdx);
@@ -197,6 +197,32 @@ var _Table = /** @class */ (function (_super) {
197
197
  }
198
198
  }
199
199
  };
200
+ // Method to update a row element
201
+ _Table.prototype.updateRow = function (elRow, row) {
202
+ if (row === void 0) { row = {}; }
203
+ // Parse the columns
204
+ for (var i = 0; i < this.props.columns.length; i++) {
205
+ var colProps = this.props.columns[i];
206
+ var elCol = elRow.children[i];
207
+ if (elCol) {
208
+ // See if there is an event for this column
209
+ if (colProps.onRenderCell) {
210
+ // Call the event
211
+ colProps.onRenderCell(elCol, colProps, row);
212
+ }
213
+ // See if there is an event for this component
214
+ if (this.props.onRenderCell) {
215
+ // Call the event
216
+ this.props.onRenderCell(elCol, colProps, row);
217
+ }
218
+ }
219
+ }
220
+ // See if there is an event
221
+ if (this.props.onRenderRow) {
222
+ // Call the event
223
+ this.props.onRenderRow(elRow, row);
224
+ }
225
+ };
200
226
  return _Table;
201
227
  }(base_1.Base));
202
228
  var Table = function (props, template) { return new _Table(props, template); };