blockly > Kosz > autoHide
Metoda Trashcan.autoUkryj()
Ukrywa komponent. Wywoływane w WorkspaceSvg.hideChaff.
Podpis:
autoHide(onlyClosePopups: boolean): void;
Parametry
Parametr |
Typ |
Opis |
onlyClosePopups |
wartość logiczna |
Określa, czy tylko wyskakujące okienka mają być zamykane. Okienko wyjściowe nie powinno być zamykane, jeśli to prawda. |
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: 2024-09-12 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-12 UTC."],[[["The `autoHide` method hides the trashcan component within a Blockly workspace."],["This method is triggered by `WorkspaceSvg.hideChaff` and optionally allows for closing only popups while keeping flyouts open."],["`autoHide` takes a boolean parameter, `onlyClosePopups`, to control whether only popups are closed or if flyouts are closed as well."]]],["The `Trashcan.autoHide()` method hides the trashcan component. It accepts a boolean parameter, `onlyClosePopups`, which determines whether only popups should be closed or if flyouts should also be closed. If `onlyClosePopups` is true, flyouts will remain open. This method is called within `WorkspaceSvg.hideChaff` and does not return any value.\n"]]