SpreadJS 13
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.
The text string of the clipboard.
The html string of the clipboard.
A value that indicates whether the operation should be canceled.
In This Topic
    ClipboardChanging Event
    In This Topic
    Occurs when the Clipboard is changing due to a Spread.Sheets action.
    Syntax
    var instance; // Type: Events
    instance.ClipboardChanging = function(sheet, sheetName, copyData, copyData.text, copyData.html, cancel) { };
    ClipboardChanging = function ( 
       sheet : Worksheet,
       sheetName : string,
       copyData : Object,
       copyData.text : string,
       copyData.html : string,
       cancel : boolean
    ) { };

    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.
    copyData.text
    The text string of the clipboard.
    copyData.html
    The html string of 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(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