Skip to main content

Home > blockly > BlockSvg > addClass

BlockSvg.addClass() method

Add a CSS class to the SVG group of this block.

Signature:

addClass(className: string): void;

Parameters

ParameterTypeDescription
classNamestring

Returns:

void