blockly > BlockFlyoutInflater > load

BlockFlyoutInflater.load() method

Inflates a flyout block from the given state and adds it to the flyout.

Signature:

load(state: object, flyout: IFlyout): FlyoutItem;

Parameters

Parameter Type Description
state object A JSON representation of a flyout block.
flyout IFlyout The flyout to create the block on.

Returns:

FlyoutItem

A newly created block.