Skip to main content

Home > blockly > FieldLabelSerializable > (constructor)

FieldLabelSerializable.(constructor)

Constructs a new instance of the FieldLabelSerializable class

Signature:

constructor(value?: string, textClass?: string, config?: FieldLabelConfig);

Parameters

ParameterTypeDescription
valuestring(Optional) The initial value of the field. Should cast to a string. Defaults to an empty string if null or undefined.
textClassstring(Optional) Optional CSS class for the field's text.
configFieldLabelConfig(Optional) A map of options used to configure the field. See the field creation documentation for a list of properties this parameter supports.