Stay organized with collections Save and categorize content based on your preferences.

blockly > Theme > setBlockStyle

Theme.setBlockStyle() method

Overrides or adds a style to the blockStyles map.

Signature:

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

Parameters

Parameter Type Description
blockStyleName string The name of the block style.
blockStyle BlockStyle The block style.

Returns:

void