Skip to main content

Home > blockly > Block > hasIcon

Block.hasIcon() method

Signature:

hasIcon(type: IconType<IIcon>): boolean;

Parameters

ParameterTypeDescription
typeIconType<IIcon>

Returns:

boolean

True if an icon with the given type exists on the block, false otherwise.