Search results

BlockDragEventArgs API in React Blockeditor API component

Properties

blocks

BlockModel[]

Specifies the block models that is being dragged.

cancel

boolean

Specifies whether the drag action should be canceled.

dropIndex

number

Specifies the index where the block is intended to be dropped.

event

Event

Specifies the native event (e.g., mouse or drag event) that triggered the block drag action.

fromIndex

number[]

Specifies the index of the blocks from which the drag started.

target

HTMLElement

Specifies the target HTML element where the block is being dragged from.