Home > 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
| Property | Modifiers | Type | Description |
|---|---|---|---|
| COMMENT | static | IconType<ICommentIcon> | |
| MUTATOR | static | IconType<MutatorIcon> | |
| WARNING | static | IconType<WarningIcon> |
Methods
| Method | Modifiers | Description |
|---|---|---|
| equals(type) | ||
| toString() |