blockly > Toolbox > updateFlyout_

Toolbox.updateFlyout_() method

Decides whether to hide or show the flyout depending on the selected item.

Signature:

protected updateFlyout_(oldItem: ISelectableToolboxItem | null, newItem: ISelectableToolboxItem | null): void;

Parameters

Parameter Type Description
oldItem ISelectableToolboxItem | null The previously selected toolbox item.
newItem ISelectableToolboxItem | null The newly selected toolbox item.

Returns:

void