gd-bs 6.9.19 → 6.9.21

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.
@@ -88,6 +88,21 @@ class _Form extends Base {
88
88
  this.el.appendChild(row.el);
89
89
  }
90
90
  }
91
+ // Clears the validation on the form
92
+ clearValidation() {
93
+ // Find the controls that have been validated
94
+ let controls = this.el.querySelectorAll(".is-valid");
95
+ for (let i = 0; i < controls.length; i++) {
96
+ // Remove the class
97
+ controls[i].classList.remove("is-valid");
98
+ }
99
+ // Find the controls that have been validated
100
+ controls = this.el.querySelectorAll(".is-invalid");
101
+ for (let i = 0; i < controls.length; i++) {
102
+ // Remove the class
103
+ controls[i].classList.remove("is-invalid");
104
+ }
105
+ }
91
106
  // The forms controls
92
107
  get controls() {
93
108
  let controls = [];
@@ -192,9 +192,14 @@ 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
197
  for (let i = 0; i < this.props.columns.length; i++) {
198
+ // See if this column is hidden
199
+ if (hiddenColIndexes && hiddenColIndexes.indexOf(i) >= 0) {
200
+ continue;
201
+ }
202
+ // Get the column element
198
203
  let elCol = elRow.children[i];
199
204
  if (elCol) {
200
205
  // Update the column