Skip to main content

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

ConstructorModifiersDescription
(constructor)(name)Constructs a new instance of the IconType class

Properties

PropertyModifiersTypeDescription
COMMENTstaticIconType<ICommentIcon>
MUTATORstaticIconType<MutatorIcon>
WARNINGstaticIconType<WarningIcon>

Methods

MethodModifiersDescription
equals(type)
toString()