Stay organized with collections
Save and categorize content based on your preferences.
blockly > ToolboxCategory > createIconDom_
Creates the span that holds the category icon.
Signature:
protected createIconDom_(): Element;
Returns:
Element
The span that holds the category icon.
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."],[[["The `ToolboxCategory.createIconDom_` method generates the HTML element that displays the category's icon within the toolbox."],["This method is designated as `protected`, indicating its intended use within the `ToolboxCategory` class or its subclasses."],["Upon execution, `createIconDom_` returns an `Element` representing the HTML span containing the category icon."]]],["The `createIconDom_()` method, part of the `ToolboxCategory` class, generates the HTML span element responsible for displaying the category icon. This method, designated as protected, returns an `Element`, which is the constructed span containing the icon. Its primary action is to create and return this specific DOM element.\n"]]