SpreadJS 13
GC.Spread.Sheets Namespace / Events type / ClipboardChanged Event
The sheet that triggered the event.
The sheet's name.
The data from Spread.Sheets that has been set into the clipboard.
The text string of the clipboard.
The html string of the clipboard.
In This Topic
    ClipboardChanged Event
    In This Topic
    Occurs when a Clipboard change occurs that affects Spread.Sheets.
    Syntax
    var instance; // Type: Events
    instance.ClipboardChanged = function(sheet, sheetName, copyData, copyData.text, copyData.html) { };
    ClipboardChanged = function ( 
       sheet : Worksheet,
       sheetName : string,
       copyData : Object,
       copyData.text : string,
       copyData.html : string
    ) { };

    Parameters

    sheet
    The sheet that triggered the event.
    sheetName
    The sheet's name.
    copyData
    The data from Spread.Sheets that has been set into the clipboard.
    copyData.text
    The text string of the clipboard.
    copyData.html
    The html string of the clipboard.
    Example
    This example uses the ClipboardChanged 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.
    See Also

    Reference

    Events type