MCPcopy
hub / github.com/react-dnd/react-dnd / getItem

Method getItem

packages/dnd-core/src/interfaces.ts:59–59  ·  view source on GitHub ↗

* Returns a plain object representing the currently dragged item. Every drag source must specify it by returning an object * from its beginDrag() method. Returns null if no item is being dragged.

()

Source from the content-addressed store, hash-verified

57 * from its beginDrag() method. Returns null if no item is being dragged.
58 */
59 getItem(): any
60 getSourceId(): Identifier | null
61 getTargetIds(): Identifier[]
62 /**

Callers 6

CustomDragLayerFunction · 0.65
isDraggingFunction · 0.65
TargetBoxFunction · 0.65
SourceBoxFunction · 0.65
isDraggingMethod · 0.65

Implementers 2

DragDropMonitorImplpackages/dnd-core/src/classes/DragDrop
DragSourceMonitorImplpackages/react-dnd/src/internals/DragS

Calls

no outgoing calls

Tested by 1

isDraggingMethod · 0.52