fires before data pasting
| start | object | an object with the start cell of the selected area (target of paste) set as {row:id, column:id} |
| end | object | an object with the end cell of the selected area (target of paste) set as {row:id, column:id} |
| data | array | an array of cells with data that were copied (a 2D (two-dimensional) array of rows with cells) |
| fromSheet | boolean | signals if the copied data are from the same sheet where they are pasted into |
| context | object | a context object of the copy operation which has page (the origin of the copied data) and view (the instance of spreadsheet, also the origin of the data) |
| boolean | returning false will prevent pasting of copied data |
$$("ssheet1").attachEvent("onBeforePaste",function(start,end,data,fromSheet,context){
// handler code here
return true;
});
Each cell in the data array parameter includes:
null