Skip to main content

Home > blockly > bubbles > TextInputBubble > (constructor)

bubbles.TextInputBubble.(constructor)

Constructs a new instance of the TextInputBubble class

Signature:

constructor(workspace: WorkspaceSvg, anchor: Coordinate, ownerRect?: Rect | undefined, owner?: (IHasBubble & IFocusableNode) | undefined);

Parameters

ParameterTypeDescription
workspaceWorkspaceSvgThe workspace this bubble belongs to.
anchorCoordinateThe anchor location of the thing this bubble is attached to. The tail of the bubble will point to this location.
ownerRectRect | undefined(Optional) An optional rect we don't want the bubble to overlap with when automatically positioning.
owner(IHasBubble & IFocusableNode) | undefined(Optional) The object that owns/hosts this bubble.