blockly > Css > register

Css.register() function

Add some CSS to the blob that will be injected later. Allows optional components such as fields and the toolbox to store separate CSS.

Signature:

export declare function register(cssContent: string): void;

Parameters

Parameter Type Description
cssContent string Multiline CSS string or an array of single lines of CSS.

Returns:

void