blockly > FieldLabelSerializable > (constructor)
FieldLabelSerializable.(constructor)
Constructs a new instance of the FieldLabelSerializable
class
Signature:
constructor(value?: string, textClass?: string, config?: FieldLabelConfig);
Parameters
Parameter | Type | Description |
---|---|---|
value | string | (Optional) The initial value of the field. Should cast to a string. Defaults to an empty string if null or undefined. |
textClass | string | (Optional) Optional CSS class for the field's text. |
config | FieldLabelConfig | (Optional) A map of options used to configure the field. See the [field creation documentation]https://developers.google.com/blockly/guides/create-custom-blocks/fields/built-in-fields/label-serializable#creation for a list of properties this parameter supports. |