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

Parameter Type Description
copyData ICopyData copy data for the last item copied.

Returns:

void