Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > IconType
icons.IconType class
Defines the type of an icon, so that it can be retrieved from block.getIcon
Signature:
export declare class IconType<_T extends IIcon>
Constructors
Constructor |
Modifiers |
Description |
(constructor)(name) |
|
Constructs a new instance of the IconType class |
Properties
Methods
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.
[null,null,["Last updated 2024-09-18 UTC."],[],["The `IconType` class defines icon types for retrieval from a block using `block.getIcon`. It has a constructor to create new instances and includes static properties: `COMMENT`, `MUTATOR`, and `WARNING`, representing different icon types. It also includes two methods: `equals(type)` for comparison and `toString()` for string conversion of the icon type. The class is part of the `icons` namespace within the larger `blockly` module.\n"],null,[]]