ClassesFieldLabelblockly.fieldlabel.setclassOn this pageHome > blockly > FieldLabel > setClass FieldLabel.setClass() method Set the CSS class applied to the field's textElement_. Signature: setClass(cssClass: string | null): void; Parameters ParameterTypeDescriptioncssClassstring | nullThe new CSS class name, or null to remove. Returns: void