[BUG] Columns.hide() and show() don't work with integer values
JustAPyro opened this issue · comments
The documentation here: https://fiduswriter.github.io/simple-datatables/documentation/columns-API#hideselect-integerarray
Suggests that you can use either table.columns.hide(int) or table.columns.hide(array[int]), but as far as I could tell you must pass an array.
In columns.ts here you can see both show() and hide() only handle arrays.
https://github.com/fiduswriter/simple-datatables/blob/main/src/columns.ts
This is not a major issue and is pretty easy to work around, and I'm not even sure if it's an error with the doc or the codebase, but I thought I'd put out here since I struggled with it for a bit.