Skip to main content

Home > blockly > Events > BlockMove > setReason

Events.BlockMove.setReason() method

Set the reason for a move event.

Signature:

setReason(reason: string[]): void;

Parameters

ParameterTypeDescription
reasonstring[]Why is this move happening? 'drag', 'bump', 'snap', ...

Returns:

void