Skip to main content

Home > blockly > BlockFlyoutInflater

BlockFlyoutInflater class

Class responsible for creating blocks for flyouts.

Signature:

export declare class BlockFlyoutInflater implements IFlyoutInflater 

Implements: IFlyoutInflater

Constructors

ConstructorModifiersDescription
(constructor)()Creates a new BlockFlyoutInflater instance.

Properties

PropertyModifiersTypeDescription
flyout?protectedIFlyout(Optional)
listenersprotectedMap<string, browserEvents.Data[]>
permanentlyDisabledBlocksprotectedSet<BlockSvg>

Methods

MethodModifiersDescription
addBlockListeners(block)protectedAdd listeners to a block that has been added to the flyout.
createBlock(blockDefinition, workspace)Creates a block on the given workspace.
disposeItem(item)Disposes of the given block.
gapForItem(state, defaultGap)Returns the amount of space that should follow this block.
getType()Returns the type of items this inflater is responsible for creating.
load(state, flyout)Inflates a flyout block from the given state and adds it to the flyout.
removeListeners(blockId)protectedRemoves event listeners for the block with the given ID.
setFlyout(flyout)protectedUpdates this inflater's flyout.