fires before data is pasted
| 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 whether the copied data come from the same sheet they are pasted into |
| context | object | a context object of the copy operation with the page (the origin of the copied data) and view (the SpreadSheet instance the data come from) properties |
| 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