Skip to main content

Home > blockly > Theme > setBlockStyle

Theme.setBlockStyle() method

Overrides or adds a style to the blockStyles map.

Signature:

setBlockStyle(blockStyleName: string, blockStyle: BlockStyle): void;

Parameters

ParameterTypeDescription
blockStyleNamestringThe name of the block style.
blockStyleBlockStyleThe block style.

Returns:

void