blockly > FieldLabel

FieldLabel class

Class for a non-editable, non-serializable text field.


export declare class FieldLabel extends Field<string> 

Extends: Field<string>


Constructor Modifiers Description
(constructor)(value, textClass, config) Constructs a new instance of the FieldLabel class


Property Modifiers Type Description
EDITABLE boolean Editable fields usually show some sort of UI indicating they are editable. This field should not.


Method Modifiers Description
configure_(config) protected
doClassValidation_(newValue) protected Ensure that the input value casts to a valid string.
setClass(cssClass) Set the CSS class applied to the field's textElement_.