Skip to main content

blockly > Events > CommentDrag > (constructor)

Events.CommentDrag.(constructor)

Constructs a new instance of the CommentDrag class

Signature:

constructor(opt_comment?: WorkspaceComment, opt_isStart?: boolean);

Parameters

Parameter

Type

Description

opt_comment

WorkspaceComment

(Optional) The comment that is being dragged. Undefined for a blank event.

opt_isStart

boolean

(Optional) Whether this is the start of a comment drag. Undefined for a blank event.