DataGridXL / DataGridXL3

Excel-like JavaScript Data Grid - Unbeaten Performance
0 stars 0 forks source link

new DataGridXL(Id) should replace Dom node, not append #10

Closed DataGridXL closed 6 months ago

DataGridXL commented 6 months ago

image

DataGridXL commented 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!

DataGridXL commented 6 months ago

Fixed.