Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > MutatorIcon > getWorkspace
icons.MutatorIcon.getWorkspace() method
Signature:
getWorkspace(): WorkspaceSvg | undefined;
Returns:
WorkspaceSvg | undefined
The workspace of the mini workspace bubble, if the bubble is currently open.
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\u003eicons.MutatorIcon.getWorkspace()\u003c/code\u003e method retrieves the workspace associated with a mutator icon's bubble.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a \u003ccode\u003eWorkspaceSvg\u003c/code\u003e object representing the mini workspace if the bubble is open, otherwise it returns \u003ccode\u003eundefined\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis method is primarily used to interact with the workspace inside the mutator bubble, such as accessing blocks or connections within it.\u003c/p\u003e\n"]]],["The `getWorkspace()` method, part of the `MutatorIcon` class, retrieves the workspace associated with a mini workspace bubble. It returns a `WorkspaceSvg` object if the bubble is open. If the bubble is not currently open, the method returns `undefined`. This method essentially provides access to the mini workspace's context when a bubble interface is active.\n"],null,["[blockly](./blockly.md) \\\u003e [icons](./blockly.icons_namespace.md) \\\u003e [MutatorIcon](./blockly.icons_namespace.mutatoricon_class.md) \\\u003e [getWorkspace](./blockly.icons_namespace.mutatoricon_class.getworkspace_1_method.md)\n\nicons.MutatorIcon.getWorkspace() method\n---------------------------------------\n\n**Signature:** \n\n getWorkspace(): WorkspaceSvg | undefined;\n\n**Returns:**\n\n[WorkspaceSvg](./blockly.workspacesvg_class.md) \\| undefined\n\nThe workspace of the mini workspace bubble, if the bubble is currently open."]]