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

Copying and pasting from/to clipboard

Open marekhvolka opened this issue 4 years ago • 3 comments

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

  1. Copy some text to your clipboard
  2. Select a cell
  3. paste the value via ctrl + v (cmd + v on Mac)

Copying from the table cell outside

  1. Select a cell
  2. copy the value via ctrl + c (cmd + c on Mac)
  3. paste the value somewhere outside of the table

marekhvolka avatar Nov 11 '21 11:11 marekhvolka

It would be great to have this feature, just like excel.

adityatoshniwal avatar Nov 18 '21 06:11 adityatoshniwal

Would also appreciate this feature. Especially to copy from and/or to Excel or Google Sheets.

peetjvv avatar Feb 11 '22 09:02 peetjvv

Hello everyone, any updates on this feature or any workarounds we can use until it becomes a native part of the library?

thomassmartinez avatar Sep 05 '23 13:09 thomassmartinez