Skip to main content

Home > 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

ParameterTypeDescription
oldItemISelectableToolboxItem | nullThe previously selected toolbox item.
newItemISelectableToolboxItem | nullThe newly selected toolbox item.

Returns:

void