Skip to main content

Home > blockly > Events > BlockDrag > (constructor)

Events.BlockDrag.(constructor)

Constructs a new instance of the BlockDrag class

Signature:

constructor(opt_block?: Block, opt_isStart?: boolean, opt_blocks?: Block[]);

Parameters

ParameterTypeDescription
opt_blockBlock(Optional) The top block in the stack that is being dragged. Undefined for a blank event.
opt_isStartboolean(Optional) Whether this is the start of a block drag. Undefined for a blank event.
opt_blocksBlock[](Optional) The blocks affected by this drag. Undefined for a blank event.