blockly > LabelFlyoutInflater > load

Methode „LabelFlyoutInflater.load()“

Erweitert ein Flyout-Label aus dem angegebenen Status und fügt es dem Flyout hinzu.

Unterschrift:

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

Parameter

Parameter Typ Beschreibung
Bundesstaat Objekt Eine JSON-Darstellung eines Flyout-Labels.
Flyout IFlyout Das Flyout, in dem das Label erstellt werden soll.

Gibt zurück:

FlyoutItem

Eine Flyout-Schaltfläche, die als Label konfiguriert ist.