SpreadJS Documentation
ClipboardChanging Event
GC.Spread.Sheets Namespace > Events type : ClipboardChanging Event
The sheet that triggered the event.
The sheet's name.
The data from Spread.Sheets that is set into the clipboard.
Occurs when the Clipboard is changing due to a Spread.Sheets action.
Syntax
var instance; // Type: Events
instance.ClipboardChanging = function(sheet, sheetName, copyData) { };
ClipboardChanging = function ( 
   sheet : Worksheet,
   sheetName : string,
   copyData : Object
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
copyData
The data from Spread.Sheets that is set into the clipboard.
Example
This example uses the ClipboardChanging event.
// 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");
});
Remarks
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.
See Also

Reference

Events type