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

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

Properties

Property Modifiers Type Description
anchor protected Coordinate
ownerRect? protected Rect | undefined (Optional)
workspace readonly WorkspaceSvg

Methods

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