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

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.


protected getText_(): string | null;


string | null

Selected option text.