blockly > Events > CommentMove > setReason

Events.CommentMove.setReason() method

Sets the reason for a move event.

Signature:

setReason(reason: string[]): void;

Parameters

Parameter Type Description
reason string[] Why is this move happening? 'drag', 'bump', 'snap', ...

Returns:

void