blockly > ButtonFlyoutInflater > load

ButtonFlyoutInflater.load() method

Inflates a flyout button 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 button.
flyout IFlyout The flyout to create the button on.

Returns:

FlyoutItem

A newly created FlyoutButton.