blockly > blockRendering > PathObject > setClass_

blockRendering.PathObject.setClass_() method

Add or remove the given CSS class on the path object's root SVG element.

Signature:

protected setClass_(className: string, add: boolean): void;

Parameters

Parameter Type Description
className string The name of the class to add or remove
add boolean True if the class should be added. False if it should be removed.

Returns:

void