nick-keller / react-datasheet-grid

An Airtable-like / Excel-like component to create beautiful spreadsheets.
MIT License
1.81k stars 171 forks source link

make whole datasheet read-only #187

Closed alenocera closed 2 years ago

alenocera commented 2 years ago

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!

nick-keller commented 2 years ago

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"