Stay organized with collections
Save and categorize content based on your preferences.
blockly > Trashcan > createDom
Trashcan.createDom() method
Create the trash can elements.
Signature:
createDom(): SVGElement;
Returns:
SVGElement
The trash can's SVG group.
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\u003ecreateDom()\u003c/code\u003e method generates the necessary elements for rendering the Blockly trash can.\u003c/p\u003e\n"],["\u003cp\u003eIt returns an SVG group element that represents the trash can visually within the Blockly workspace.\u003c/p\u003e\n"],["\u003cp\u003eThis method is part of the \u003ccode\u003eTrashcan\u003c/code\u003e class and is essential for initializing the trash can's visual representation.\u003c/p\u003e\n"]]],["The `Trashcan.createDom()` method generates the visual elements for the trash can. It takes no input parameters and returns an SVG group element, which represents the complete trash can within the user interface. This method's core function is to construct the necessary SVG elements for the trash can's display.\n"],null,["[blockly](./blockly.md) \\\u003e [Trashcan](./blockly.trashcan_class.md) \\\u003e [createDom](./blockly.trashcan_class.createdom_1_method.md)\n\nTrashcan.createDom() method\n---------------------------\n\nCreate the trash can elements.\n\n**Signature:** \n\n createDom(): SVGElement;\n\n**Returns:**\n\nSVGElement\n\nThe trash can's SVG group."]]