Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Zestaw narzędzi > updateFlyout_
Określa, czy wyświetlić lub ukryć wysuwane menu w zależności od wybranego elementu.
Podpis:
protected updateFlyout_(oldItem: ISelectableToolboxItem | null, newItem: ISelectableToolboxItem | null): void;
Parametry
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["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"]]