blockly > Block > hasIcon

Block.hasIcon() method

Signature:

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

Parameters

Parameter Type Description
type IconType<IIcon>

Returns:

boolean

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