jspreadsheet / ce

Jspreadsheet is a lightweight vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.
https://bossanova.uk/jspreadsheet/v4
MIT License
6.66k stars 818 forks source link

It is possible to remove all columns [BUG] #1674

Open anya92 opened 4 months ago

anya92 commented 4 months ago

It is possible to remove all columns (including the first one), if there is more than one, and you select all of them and click "Remove selected columns" from the context menu (e.g. here: Docs).

But if there is only one column and you try to delete it, it is blocked and you get an error in the console: Jspreadsheet: It is not possible to delete the last column.

Would it be possible to introduce a new option to specify whether all columns should be allowed to be deleted? As with rows this was solved with allowDeletingAllRows.