Stay organized with collections
Save and categorize content based on your preferences.
blockly > ToolboxCategory > getDiv
Signature:
getDiv(): HTMLDivElement | null;
Returns:
HTMLDivElement | null
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."],[[["This method, `getDiv()`, belongs to the `ToolboxCategory` class within the Blockly library."],["It retrieves the associated HTML `\u003cdiv\u003e` element for the category or returns `null` if it hasn't been rendered yet."],["Its primary purpose is to allow access and potential manipulation of the category's visual representation within the toolbox."]]],["The `getDiv()` method, part of the `ToolboxCategory` class, retrieves the HTMLDivElement associated with a toolbox category. It takes no arguments. The method's primary function is to return the category's `HTMLDivElement` if it exists. If no such element is found, it returns `null`. This method is used to access the visual representation of a category within the toolbox.\n"]]