Skip to main content

blockly > FieldLabel > setClass

FieldLabel.setClass() method

Set the CSS class applied to the field's textElement_.

Signature:

setClass(cssClass: string | null): void;

Parameters

Parameter

Type

Description

cssClass

string | null

The new CSS class name, or null to remove.

Returns:

void