DropTarget
Call Signature
Section titled “Call Signature”DropTarget<
Data>(props):ReactNode
Where a Draggable lands. It sets data-over while a drag it takes is
over it, and calls onDrop when that drag lands, through whatever
stands over it, such as a window’s dimmed screen. It needs the
dragAndDrop plugin in the Game’s plugins.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Data |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
GuardedDropTargetProps<Data> |
Returns
Section titled “Returns”ReactNode
Call Signature
Section titled “Call Signature”DropTarget(
props):ReactNode
Where a Draggable lands. It sets data-over while a drag it takes is
over it, and calls onDrop when that drag lands, through whatever
stands over it, such as a window’s dimmed screen. It needs the
dragAndDrop plugin in the Game’s plugins.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
OpenDropTargetProps |
Returns
Section titled “Returns”ReactNode
Call Signature
Section titled “Call Signature”DropTarget<
Data>(props):ReactNode
Where a Draggable lands. It sets data-over while a drag it takes is
over it, and calls onDrop when that drag lands, through whatever
stands over it, such as a window’s dimmed screen. It needs the
dragAndDrop plugin in the Game’s plugins.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
Data |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
DropTargetProps<Data> |
Returns
Section titled “Returns”ReactNode