react-spreadsheet
react-spreadsheet copied to clipboard
Detect what cells (rows) have been changed after clipboard paste
It is amazing that there is an opportunity to copy a particular columns in the table! But without a connection to a server (backend), this possibility does not make sense.
Connection with backend can be achieved using onChange prop of Spreadsheet component by comparing a previous table array with an actual table array. However when there are a lot of rows/cols in the table, this comparison is a bit slow at performance to just get pasted table data.
I think it would be cool to have the onClipboardPaste(rows: Array<number>) (where rows is the property that contains indices of rows that have been changed) property of the Spreadsheet component.
Could it be implemented?