Skip to main content
Version: 4.3

StartCellDragOptions

Options accepted by StencilApi.startCellDrag.

Inherits the five drag-lifecycle callbacks from StencilEventHandlers same names, same payloads. The only own field is dropCell.

Extends​

  • StencilEventHandlers

Properties​

dropCell?​

readonly optional dropCell?: 
| Cell<Attributes<Selectors>, ModelSetOptions>
| AnyCellRecord;

Cell to add to the paper on drop. Use when the dropped element should differ from the drag preview built from cell.

Default​

a clone of the dragged cell


onCellDrag?​

optional onCellDrag?: (params) => void;

Fires continuously while an element is being dragged from the stencil.

Parameters​

ParameterType
paramsStencilDragParams

Returns​

void

onCellDragEnd?​

optional onCellDragEnd?: (params) => void;

Fires once when the user releases, before onCellDrop / onCellDropInvalid.

Parameters​

ParameterType
paramsStencilDragParams

Returns​

void

onCellDragStart?​

optional onCellDragStart?: (params) => void;

Fires when the drag actually starts (async, once the drag preview's size has been measured).

Parameters​

ParameterType
paramsStencilDragParams

Returns​

void

onCellDrop?​

optional onCellDrop?: (params) => void;

Fires when the cell lands on a valid drop target.

Parameters​

ParameterType
paramsStencilDropParams

Returns​

void

onCellDropInvalid?​

optional onCellDropInvalid?: (params) => void;

Fires when the cell is released outside any valid drop target.

Parameters​

ParameterType
paramsStencilDropInvalidParams

Returns​

void