Skip to main content

RdndDropSpec<DragObject, DropResult, CollectedProps>

Defined in: dnd/src/vendored.ts:54

Structural stand-in for react-dnd's DropTargetHookSpec.

Type Parameters

Type Parameter
DragObject
DropResult
CollectedProps

Indexable

[key: string]: any

Properties

accept

accept: any

Defined in: dnd/src/vendored.ts:55


canDrop?

optional canDrop?: (item: DragObject, monitor: any) => boolean

Defined in: dnd/src/vendored.ts:57

Parameters

ParameterType
itemDragObject
monitorany

Returns

boolean


collect?

optional collect?: (monitor: any) => CollectedProps

Defined in: dnd/src/vendored.ts:56

Parameters

ParameterType
monitorany

Returns

CollectedProps


drop?

optional drop?: (item: DragObject, monitor: any) => DropResult | undefined

Defined in: dnd/src/vendored.ts:58

Parameters

ParameterType
itemDragObject
monitorany

Returns

DropResult | undefined


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.