blockly > Comment

Comment class

Class for a comment.

Signature:

export declare class Comment extends Icon 

Extends: Icon

Constructors

Constructor Modifiers Description
(constructor)(block) Constructs a new instance of the Comment class

Methods

Method Modifiers Description
dispose()

Dispose of this comment.

If you want to receive a comment "delete" event (newValue: null), then this should not be called directly. Instead call block.setCommentText(null);

drawIcon_(group) protected Draw the comment icon.
getBubbleSize() Get the dimensions of this comment's bubble.
setBubbleSize(width, height) Size this comment's bubble.
setVisible(visible) Show or hide the comment bubble.
updateEditable() Add or remove editability of the comment.