Skip to main content

blockly > LabelFlyoutInflater > load

LabelFlyoutInflater.load() method

Inflates a flyout label 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 label.

flyout

IFlyout

The flyout to create the label on.

Returns:

FlyoutItem

A FlyoutButton configured as a label.