Skip to main content

Home > blockly > FieldLabel > setClass

FieldLabel.setClass() method

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

Signature:

setClass(cssClass: string | null): void;

Parameters

ParameterTypeDescription
cssClassstring | nullThe new CSS class name, or null to remove.

Returns:

void