Skip to main content

Home > blockly > IFlyout > createBlock

IFlyout.createBlock() method

Create a copy of this block on the workspace.

Signature:

createBlock(originalBlock: BlockSvg): BlockSvg;

Parameters

ParameterTypeDescription
originalBlockBlockSvgThe block to copy from the flyout.

Returns:

BlockSvg

The newly created block.

Exceptions

{Error} if something went wrong with deserialization.