blockly > IFlyout > isBlockCreatable

IFlyout.isBlockCreatable() method

Does this flyout allow you to create a new instance of the given block? Used for deciding if a block can be "dragged out of" the flyout.

Signature:

isBlockCreatable(block: BlockSvg): boolean;

Parameters

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

Returns:

boolean

True if you can create a new instance of the block, false otherwise.