Skip to main content

Home > blockly > Events > CommentCreate

Events.CommentCreate class

Notifies listeners that a workspace comment was created.

Signature:

export declare class CommentCreate extends CommentBase 

Extends: CommentBase

Constructors

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

Properties

PropertyModifiersTypeDescription
json?comments.State(Optional) The JSON representation of the created workspace comment.
typeEventType
xml?Element | DocumentFragment(Optional) The XML representation of the created workspace comment.

Methods

MethodModifiersDescription
run(forward)Run a creation event.
toJson()Encode the event as JSON.