SpreadJS 13
GC.Spread.Sheets Namespace / Events type / 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.
The data from the clipboard that will be pasted into Spread.Sheets.
The text string of the clipboard.
The html string of the clipboard.
In This Topic
    ClipboardPasted Event
    In This Topic
    Occurs when the user pastes from the Clipboard.
    Syntax
    var instance; // Type: Events
    instance.ClipboardPasted = function(sheet,
                                        sheetName,
                                        cellRange,
                                        pasteOption,
                                        pasteData,
                                        pasteData.text,
                                        pasteData.html) { };
    ClipboardPasted = function ( 
       sheet : Worksheet,
       sheetName : string,
       cellRange : Range,
       pasteOption : ClipboardPasteOptions,
       pasteData : Object,
       pasteData.text : string,
       pasteData.html : string
    ) { };

    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.
    pasteData
    The data from the clipboard that will be pasted into Spread.Sheets.
    pasteData.text
    The text string of the clipboard.
    pasteData.html
    The html string of the clipboard.
    Example
    This example uses the ClipboardPasted 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.
    cellRange GC.Spread.Sheets.Range The range that was pasted.
    pasteOption GC.Spread.Sheets.ClipboardPasteOptions The paste option that indicates what data is pasted from the clipboard: values, formatting, or formulas.
    pasteData Object The data from the clipboard that will be pasted into SpreadJS.
    pasteData.text string The text string of the clipboard.
    pasteData.html string The html string of the clipboard.
    See Also

    Reference

    Events type