blockly > Field > getTextElement

Field.getTextElement() method

Gets the text element.

Signature:

protected getTextElement(): SVGTextElement;

Returns:

SVGTextElement

The text element.

Exceptions

An error if the text element is not defined.