Skip to content
On this page

Interface: UseDragAndDrop<CustomType> ​

Type parameters ​

NameType
CustomTypeextends string = any

Table of contents ​

Properties ​

Properties ​

handleDragStart ​

• handleDragStart: (event: DragEvent, type: DragNodeType<CustomType>) => void

Type declaration ​

â–¸ (event, type): void

Parameters ​
NameType
eventDragEvent
typeDragNodeType<CustomType>
Returns ​

void


nodeType ​

• nodeType: Ref<undefined | DragNodeType<CustomType>>


onDragOver ​

• onDragOver: (callback: (event: DragEvent) => void) => void

Type declaration ​

â–¸ (callback): void

Parameters ​
NameType
callback(event: DragEvent) => void
Returns ​

void


onDragStart ​

• onDragStart: (callback: (data: OnDragStartEventData<CustomType>) => void) => void

Type declaration ​

â–¸ (callback): void

Parameters ​
NameType
callback(data: OnDragStartEventData<CustomType>) => void
Returns ​

void


onDrop ​

• onDrop: (callback: (data: OnDropData<CustomType>) => void) => void

Type declaration ​

â–¸ (callback): void

Parameters ​
NameType
callback(data: OnDropData<CustomType>) => void
Returns ​

void

Released under the MIT License.