Skip to main content

Home > blockly > Events > CommentChange > (constructor)

Events.CommentChange.(constructor)

Constructs a new instance of the CommentChange class

Signature:

constructor(opt_comment?: WorkspaceComment, opt_oldContents?: string, opt_newContents?: string);

Parameters

ParameterTypeDescription
opt_commentWorkspaceComment(Optional) The comment that is being changed. Undefined for a blank event.
opt_oldContentsstring(Optional) Previous contents of the comment.
opt_newContentsstring(Optional) New contents of the comment.