Stay organized with collections Save and categorize content based on your preferences.

blockly > IFlyout > createBlock

IFlyout.createBlock() method

Create a copy of this block on the workspace.

Signature:

createBlock(originalBlock: BlockSvg): BlockSvg;

Parameters

Parameter Type Description
originalBlock BlockSvg The block to copy from the flyout.

Returns:

BlockSvg

The newly created block.

Exceptions

{Error} if something went wrong with deserialization.