Home > blockly > blockRendering > ConstantProvider > getBlockStyle
blockRendering.ConstantProvider.getBlockStyle() method
Gets the BlockStyle for the given block style name.
Signature:
getBlockStyle(blockStyleName: string | null): BlockStyle;
Parameters
| Parameter | Type | Description |
|---|---|---|
| blockStyleName | string | null | The name of the block style. |
Returns:
BlockStyle
The named block style, or a default style if no style with the given name was found.