Skip to main content

Home > blockly > Events > CommentBase

Events.CommentBase class

Abstract class for a comment event.

Signature:

export declare class CommentBase extends AbstractEvent 

Extends: AbstractEvent

Constructors

ConstructorModifiersDescription
(constructor)(opt_comment)Constructs a new instance of the CommentBase class

Properties

PropertyModifiersTypeDescription
commentId?string(Optional) The ID of the comment that this event references.
isBlankboolean

Methods

MethodModifiersDescription
CommentCreateDeleteHelper(event, create)staticHelper function for Comment[Create|Delete]
toJson()Encode the event as JSON.