gd-bs 6.9.14 → 6.9.15

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.
@@ -197,24 +197,33 @@ var _Table = /** @class */ (function (_super) {
197
197
  }
198
198
  }
199
199
  };
200
+ // Method to update a column element
201
+ _Table.prototype.updateColumn = function (elCol, colIdx, row) {
202
+ // Get the column
203
+ var colProps = this.props.columns[colIdx];
204
+ if (colProps) {
205
+ // Set the value
206
+ elCol.innerHTML = row[colProps.name] == null ? "" : row[colProps.name];
207
+ // See if there is an event for this column
208
+ if (colProps.onRenderCell) {
209
+ // Call the event
210
+ colProps.onRenderCell(elCol, colProps, row);
211
+ }
212
+ // See if there is an event for this component
213
+ if (this.props.onRenderCell) {
214
+ // Call the event
215
+ this.props.onRenderCell(elCol, colProps, row);
216
+ }
217
+ }
218
+ };
200
219
  // Method to update a row element
201
220
  _Table.prototype.updateRow = function (elRow, row) {
202
- if (row === void 0) { row = {}; }
203
221
  // Parse the columns
204
222
  for (var i = 0; i < this.props.columns.length; i++) {
205
- var colProps = this.props.columns[i];
206
223
  var elCol = elRow.children[i];
207
224
  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
- }
225
+ // Update the column
226
+ this.updateColumn(elCol, i, row);
218
227
  }
219
228
  }
220
229
  // See if there is an event