Closed DataGridXL closed 6 months ago
Whenever we build a DataGridXL instance with const grid = new DataGridXL("grid", {...})
, we assign the property .instance
to the grid container DOM Node.
<div id="grid"></div>
console.log(document.getElementById('grid')?.instance)` // will return DGXL instance if set
We can check if instance
is set, destroy
it, only then make a new one!
Fixed.