Skip to main content

Home > blockly > clipboard > setLastCopiedData

clipboard.setLastCopiedData() function

Sets the last copied item. You should call this method if you implement custom copy behavior, so that other callers are working with the correct data. This method is called automatically if you use the built-in copy method.

Signature:

export declare function setLastCopiedData(copyData: ICopyData): void;

Parameters

ParameterTypeDescription
copyDataICopyDatacopy data for the last item copied.

Returns:

void