Stay organized with collections Save and categorize content based on your preferences.

blockly > Events > CommentCreate

Events.CommentCreate class

Class for a comment creation event.

Signature:

export declare class CommentCreate extends CommentBase 

Extends: CommentBase

Constructors

Constructor Modifiers Description
(constructor)(opt_comment) Constructs a new instance of the CommentCreate class

Properties

Property Modifiers Type Description
type string
xml? Element | DocumentFragment (Optional)

Methods

Method Modifiers Description
fromJson(json) Decode the JSON event.
run(forward) Run a creation event.
toJson() Encode the event as JSON.