Home > 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:
The newly created block.
Exceptions
{Error} if something went wrong with deserialization.