Stay organized with collections Save and categorize content based on your preferences.

blockly > FieldLabel

FieldLabel class

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

Signature:

export declare class FieldLabel extends Field<string> 

Extends: Field<string>

Constructors

Constructor Modifiers Description
(constructor)(opt_value, opt_class, opt_config) Constructs a new instance of the FieldLabel class

Properties

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

Methods

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