gd-bs 6.9.20 → 6.9.22

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.
@@ -192,13 +192,19 @@ class _Table extends Base {
192
192
  }
193
193
  }
194
194
  // Method to update a row element
195
- updateRow(elRow, row) {
195
+ updateRow(elRow, row, hiddenColIndexes) {
196
196
  // Parse the columns
197
+ let colIdx = 0;
197
198
  for (let i = 0; i < this.props.columns.length; i++) {
198
- let elCol = elRow.children[i];
199
+ // See if this column is hidden
200
+ if (hiddenColIndexes && hiddenColIndexes.indexOf(i) >= 0) {
201
+ continue;
202
+ }
203
+ // Get the column element
204
+ let elCol = elRow.children[colIdx++];
199
205
  if (elCol) {
200
206
  // Update the column
201
- this.updateColumn(elCol, i, row);
207
+ this.updateColumn(elCol, colIdx, row);
202
208
  }
203
209
  }
204
210
  // See if there is an event