Skip to main content

Home > blockly > bubbles > TextBubble

bubbles.TextBubble class

A bubble that displays non-editable text. Used by the warning icon.

Signature:

export declare class TextBubble extends Bubble 

Extends: Bubble

Constructors

ConstructorModifiersDescription
(constructor)(text, workspace, anchor, ownerRect)Constructs a new instance of the TextBubble class

Properties

PropertyModifiersTypeDescription
anchorprotectedCoordinate
ownerRect?protectedRect | undefined(Optional)
workspacereadonlyWorkspaceSvg

Methods

MethodModifiersDescription
getText()
setText(text)Sets the current text of this text bubble, and updates the display.