SpreadJS Documentation
ClipboardChanging Event
The sheet that triggered the event.
The sheet's name.
The data from SpreadJS that is set into the clipboard.
A value that indicates whether the operation should be canceled.
Occurs when the Clipboard is changing due to a SpreadJS action.
Syntax
var instance; // Type: Events
instance.ClipboardChanging = function(sheet, sheetName, copyData, cancel) { };
ClipboardChanging = function ( 
   sheet : Sheet,
   sheetName : string,
   copyData : string,
   cancel : boolean
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
copyData
The data from SpreadJS that is set into the clipboard.
cancel
A value that indicates whether the operation should be canceled.
Example
This example uses the ClipboardChanging event.
// Use IE to see the console log text
var activeSheet = spread.getActiveSheet();

activeSheet.bind(GcSpread.Sheets.Events.ClipboardChanged, function (sender, args) {
    console.log("ClipboardChanged.");
});

activeSheet.bind(GcSpread.Sheets.Events.ClipboardChanging, function (sender, args) {
    console.log("ClipboardChanging");
});

activeSheet.bind(GcSpread.Sheets.Events.ClipboardPasted, function (sender, args) {
    console.log("ClipboardPasted");
});

activeSheet.bind(GcSpread.Sheets.Events.ClipboardPasting, function (sender, args) {
    console.log("ClipboardPasting");
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.