Jspreadsheet is a lightweight vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.
Currently the freeze function cannot be toggled "on the fly" because when its disabled there are still table cells with the jexcel_freezed class remaining.
Luckily, removing them manually gets the table back to normal.
Here's how I solved it in my code:
// clean up remaining classes which jspreadsheet leaves behind
var frozen_cells = document.querySelectorAll('td.jexcel_freezed');
for (var i = 0; i < frozen_cells.length; i++) {
frozen_cells[i].classList.remove('jexcel_freezed');
}
Currently the freeze function cannot be toggled "on the fly" because when its disabled there are still table cells with the
jexcel_freezed
class remaining.Luckily, removing them manually gets the table back to normal.
Here's how I solved it in my code: