調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >ゴミ箱 >autoHide
Trashcan.autoHide() メソッド
コンポーネントを非表示にします。WorkspaceSvg.hideChaff で呼び出されます。
署名:
autoHide(onlyClosePopups: boolean): void;
パラメータ
パラメータ |
型 |
説明 |
onlyClosePopups |
ブール値 |
ポップアップのみを閉じるかどうか。true の場合、フライアウトは閉じないでください。 |
戻り値:
void
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-12 UTC。
[null,null,["最終更新日 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"]]