Skip to main content

blockly > Events > CommentBase

Events.CommentBase class

Abstract class for a comment event.

Signature:

export declare class CommentBase extends AbstractEvent 

Extends: AbstractEvent

Constructors

Constructor

Modifiers

Description

(constructor)(opt_comment)

Constructs a new instance of the CommentBase class

Properties

Property

Modifiers

Type

Description

commentId?

string

(Optional) The ID of the comment that this event references.

isBlank

boolean

Methods

Method

Modifiers

Description

CommentCreateDeleteHelper(event, create)

static

Helper function for Comment[Create|Delete]

toJson()

Encode the event as JSON.