react-datasheet-grid icon indicating copy to clipboard operation
react-datasheet-grid copied to clipboard

make whole datasheet read-only

Open alenocera opened this issue 1 year ago • 1 comments

Hi, after reading the documentation I'm able to discover that there are only the columns/cells disable possibility. There is a way to have a props named readonly in order to make the whole datasheet in read-only mode (just possible copy data in this way)?

Thanks a lot!

alenocera avatar Sep 15 '22 09:09 alenocera

That is true, good point. A workaround would be to set disabled to true for each column. You should also set lockRows to true on the grid. You could also change some CSS variables to make the UI look "normal"

nick-keller avatar Sep 15 '22 12:09 nick-keller