react-data-grid
react-data-grid copied to clipboard
Copying and pasting from/to clipboard
Use case
It looks like when we define the onPaste handler, the copy/paste from/to clipboard doesn't work unless we double click into the cell.
In our use case we need to have a custom onPaste handler, but this handler is not called when the source cell is empty.
Proposed solution
Pasting to the table cell from outside
- Copy some text to your clipboard
- Select a cell
- paste the value via ctrl + v (cmd + v on Mac)
Copying from the table cell outside
- Select a cell
- copy the value via ctrl + c (cmd + c on Mac)
- paste the value somewhere outside of the table
It would be great to have this feature, just like excel.
Would also appreciate this feature. Especially to copy from and/or to Excel or Google Sheets.
Hello everyone, any updates on this feature or any workarounds we can use until it becomes a native part of the library?