6pac / SlickGrid

A lightning fast JavaScript grid/spreadsheet
https://stackblitz.com/github/6pac/SlickGrid/tree/master/vite-demo
MIT License
1.85k stars 424 forks source link

feat: add column `reorderable` option to optionally lock a column #983

Closed ghiscoding closed 10 months ago

ghiscoding commented 10 months ago

⚠️ Warnings

I did add and set reorderable: false to the following 3 plugins, they can all be overriden when instantiating the plugin via their respective options

brave_RO4KUzXlJ7

ghiscoding commented 10 months ago

cc @6pac

zewa666 commented 10 months ago

looking forward to this one. would make a great fit for the row based edit plugin to lock down the actions column in its place.

6pac commented 10 months ago

I'm good with this but the issue has always been that if you can't drag a column to a place in the column list, you can drag another column to its left or right and eventually acheive the same thing. I don't care about that, but thought I should just point it out.

ghiscoding commented 10 months ago

I know that point and it is mentioned in the PR, this feature is mostly helpful when you use plugin like checkbox selector (row selection) in which you want to keep the checkboxes column as the first column in the grid