SpreadJS Documentation > Sample Code > Sample Code Using the Clipboard > Deactivating Pasting |
You can cancel the paste action.
This example cancels the paste action.
JavaScript |
Copy Code
|
---|---|
$(document).ready(function () { var spread = new GcSpread.Sheets.Spread($("#ss").get(0),{sheetCount:3}); var sheet = spread.getActiveSheet(); sheet.bind(GcSpread.Sheets.Events.ClipboardPasting, function (e, args) { args.cancel = true; }); }); |