canvas-datagrid
canvas-datagrid copied to clipboard
`afterpaste` event doesn't include pasted data
Expected behavior and actual behavior.
Expect: afterpaste
event to provide a way to access the values pasted.
Actual: afterpaste
event doesn't provide the values of the cells, only the indices of the affected cells.
Suggestion:
-
e.cells
contains an array of affected cells. Each element of the array is of the form[rowIndex, columnIndex, boundRowIndex, boundColumnIndex]
. I suggest adding a fifth element to the array with the new value of the cell.or
-
Add a new property,
rows
, containing entire rows affected by the paste. This is similar to how thebeforeendedit
event includes thee.cell.data
property with the data for the entire row.
Steps to reproduce the problem.
Specifications like the version of the project, operating system, or hardware.
I'm willing to make a PR. Please let me know if you like any of these approaches or have any suggestions