blockly > Events > CommentChange

Events.CommentChange class

Notifies listeners that the contents of a workspace comment has changed.


export declare class CommentChange extends CommentBase 

Extends: CommentBase


Constructor Modifiers Description
(constructor)(opt_comment, opt_oldContents, opt_newContents) Constructs a new instance of the CommentChange class


Property Modifiers Type Description
newContents_? string (Optional) The new contents of the comment.
oldContents_? string (Optional) The previous contents of the comment.
type string


Method Modifiers Description
isNull() Does this event record any change of state?
run(forward) Run a change event.
toJson() Encode the event as JSON.