Skip to main content

Home > blockly > Events > BubbleOpen

Events.BubbleOpen class

Class for a bubble open event.

Signature:

export declare class BubbleOpen extends UiBase 

Extends: UiBase

Constructors

ConstructorModifiersDescription
(constructor)(opt_block, opt_isOpen, opt_bubbleType)Constructs a new instance of the BubbleOpen class

Properties

PropertyModifiersTypeDescription
blockId?string(Optional) The ID of the block the bubble is attached to.
bubbleType?BubbleType(Optional) The type of bubble; one of 'mutator', 'comment', or 'warning'.
isOpen?boolean(Optional) True if the bubble is opening, false if closing.
typeEventType

Methods

MethodModifiersDescription
toJson()Encode the event as JSON.