Skip to main content

Home > blockly > BlockSvg > setHighlighted

BlockSvg.setHighlighted() method

Set whether the block is highlighted or not. Block highlighting is often used to visually mark blocks currently being executed.

Signature:

setHighlighted(highlighted: boolean): void;

Parameters

ParameterTypeDescription
highlightedbooleanTrue if highlighted.

Returns:

void