blockly > Block > addIcon

Block.addIcon() method

Adds the given icon to the block.

Signature:

addIcon<T extends IIcon>(icon: T): T;

Parameters

Parameter Type Description
icon T

Returns:

T