SpreadJS Documentation
ClipboardPasted Event
The sheet that triggered the event.
The sheet's name.
The range that was pasted.
The paste option that indicates what data is pasted from the Clipboard: values, formatting, or formulas.
Occurs when the user pastes from the Clipboard.
Syntax
var instance; // Type: Events
instance.ClipboardPasted = function(sheet, sheetName, cellRange, pasteOption) { };
ClipboardPasted = function ( 
   sheet : Sheet,
   sheetName : string,
   cellRange : Range,
   pasteOption : ClipboardPasteOptions
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
cellRange
The range that was pasted.
pasteOption
The paste option that indicates what data is pasted from the Clipboard: values, formatting, or formulas.
Example
This example uses the ClipboardPasted 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.