研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >垃圾桶 >autoHide
Trashcan.autoHide() 方法
隐藏组件。在 WorkspaceSvg.hideChaff 中调用。
Signature:
autoHide(onlyClosePopups: boolean): void;
参数
参数 |
类型 |
说明 |
onlyClosePopups |
布尔值 |
是否仅应关闭弹出式窗口。如果为 true,则 Flyout 不应关闭。 |
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-12。
[null,null,["最后更新时间 (UTC):2024-09-12。"],[[["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"]]