blockly > Comment

Comment class

Class for a comment.


export declare class Comment extends Icon 

Extends: Icon


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


Method Modifiers Description

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.