blockly > FieldDropdown > getText_

FieldDropdown.getText_() method

Use the getText_ developer hook to override the field's text representation. Get the selected option text. If the selected option is an image we return the image alt text.

Signature:

protected getText_(): string | null;

Returns:

string | null

Selected option text.