Stay organized with collections
Save and categorize content based on your preferences.
blockly > WorkspaceSvg > setVisible
WorkspaceSvg.setVisible() method
Toggles the visibility of the workspace. Currently only intended for main workspace.
Signature:
setVisible(isVisible: boolean): void;
Parameters
Parameter |
Type |
Description |
isVisible |
boolean |
True if workspace should be visible. |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003esetVisible\u003c/code\u003e method controls the visibility of the main workspace.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a boolean parameter, \u003ccode\u003eisVisible\u003c/code\u003e, to determine whether the workspace should be visible or hidden.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003esetVisible\u003c/code\u003e with \u003ccode\u003etrue\u003c/code\u003e displays the workspace, while calling it with \u003ccode\u003efalse\u003c/code\u003e hides it.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [WorkspaceSvg](./blockly.workspacesvg_class.md) \\\u003e [setVisible](./blockly.workspacesvg_class.setvisible_1_method.md)\n\nWorkspaceSvg.setVisible() method\n--------------------------------\n\nToggles the visibility of the workspace. Currently only intended for main workspace.\n\n**Signature:** \n\n setVisible(isVisible: boolean): void;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|---------|--------------------------------------|\n| isVisible | boolean | True if workspace should be visible. |\n\n**Returns:**\n\nvoid"]]