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

readOnly prop on the DataSheet component

Open educastellano opened this issue 7 years ago • 1 comments

It would be useful to just pass a prop when you want the entire sheet to be readOnly, so it would save me to loop all the cells.

Would you accept a PR with this feature?

educastellano avatar Aug 21 '18 09:08 educastellano

You can actually do this instead for a workaround:

<ReactDataSheet data={grid} valueRenderer={cell => { cell.readOnly = true; return cell.value; }} />

jakehjung avatar Apr 10 '20 16:04 jakehjung