GC.Spread.Sheets Namespace > Events type : ClipboardChanging Event |
var instance; // Type: Events instance.ClipboardChanging = function(sheet, sheetName, copyData) { };
// Use IE to see the console log text var activeSheet = spread.getActiveSheet(); activeSheet.bind(GC.Spread.Sheets.Events.ClipboardChanged, function (sender, args) { console.log("ClipboardChanged."); }); activeSheet.bind(GC.Spread.Sheets.Events.ClipboardChanging, function (sender, args) { console.log("ClipboardChanging"); }); activeSheet.bind(GC.Spread.Sheets.Events.ClipboardPasted, function (sender, args) { console.log("ClipboardPasted"); }); activeSheet.bind(GC.Spread.Sheets.Events.ClipboardPasting, function (sender, args) { console.log("ClipboardPasting"); });
Parameter | Type | Description |
sheet | GC.Spread.Sheets.Worksheet | The sheet that triggered the event. |
sheetName | string | The sheet's name. |
copyData | Object | The data from SpreadJS that has been set into the clipboard. |
copyData.text | string | The text string of the clipboard. |
copyData.html | string | The html string of the clipboard. |
cancel | boolean | A value that indicates whether the operation should be canceled. |