SpreadJS Documentation
ClipboardPasting Event
The sheet that triggered the event.
The sheet's name.
The range to paste.
The paste option that indicates what data is pasted from the Clipboard: values, formatting, or formulas.
A value that indicates whether the operation should be canceled.
Occurs when the user is pasting from the Clipboard.
Syntax
var instance; // Type: Events
instance.ClipboardPasting = function(sheet, sheetName, cellRange, pasteOption, cancel) { };
ClipboardPasting = function ( 
   sheet : Sheet,
   sheetName : string,
   cellRange : Range,
   pasteOption : ClipboardPasteOptions,
   cancel : boolean
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
cellRange
The range to paste.
pasteOption
The paste option that indicates what data is pasted from the Clipboard: values, formatting, or formulas.
cancel
A value that indicates whether the operation should be canceled.
Example
This example uses the ClipboardPasting 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.