blockly > Toolbox > updateFlyout_
Decides whether to hide or show the flyout depending on the selected item.
Signature:
protected updateFlyout_(oldItem: ISelectableToolboxItem | null, newItem: ISelectableToolboxItem | null): void;
Parameters
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `updateFlyout_` method determines the flyout's visibility based on the currently selected toolbox item."],["It takes two arguments: `oldItem`, representing the previously selected item, and `newItem`, representing the currently selected item, both of which can be null."],["This method is responsible for managing the display of the flyout in response to user interactions with the toolbox."]]],["The `updateFlyout_` method within the `Toolbox` class determines the flyout's visibility based on the selected toolbox item. It accepts two parameters: `oldItem`, representing the previously selected item, and `newItem`, representing the newly selected item. Both parameters can be either an `ISelectableToolboxItem` or `null`. The method's core function is to show or hide the flyout. It returns void.\n"]]