Skip to content

Interface: DragInit

Defined in: packages/sdk/src/dnd-service.ts:50

What a drag carries and how its chip should read, passed to DndService.beginDrag.

Properties

items

ts
items: DndItem[];

Defined in: packages/sdk/src/dnd-service.ts:52

Typed payload items written onto the native dataTransfer.


label

ts
label: string;

Defined in: packages/sdk/src/dnd-service.ts:54

Label shown in the floating drag chip (e.g. the file name).


effect?

ts
optional effect?: "copy" | "move" | "copyMove";

Defined in: packages/sdk/src/dnd-service.ts:56

dataTransfer.effectAllowed; defaults to "copyMove".