SpreadJS Documentation
ClipboardChanged Event
The sheet that triggered the event.
The sheet's name.
The data from SpreadJS that has been set into the clipboard.
Occurs when a Clipboard change occurs that affects SpreadJS.
Syntax
var instance; // Type: Events
instance.ClipboardChanged = function(sheet, sheetName, copyData) { };
ClipboardChanged = function ( 
   sheet : Sheet,
   sheetName : string,
   copyData : string
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
copyData
The data from SpreadJS that has been set into the clipboard.
Example
This example uses the ClipboardChanged 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.