Interface: UseDragAndDrop<CustomType> ​
Type parameters ​
Name | Type |
---|---|
CustomType | extends string = any |
Table of contents ​
Properties ​
Properties ​
handleDragStart ​
• handleDragStart: (event
: DragEvent
, type
: DragNodeType
<CustomType
>) => void
Type declaration ​
â–¸ (event
, type
): void
Parameters ​
Name | Type |
---|---|
event | DragEvent |
type | DragNodeType <CustomType > |
Returns ​
void
nodeType ​
• nodeType: Ref
<undefined
| DragNodeType
<CustomType
>>
onDragOver ​
• onDragOver: (callback
: (event
: DragEvent
) => void
) => void
Type declaration ​
â–¸ (callback
): void
Parameters ​
Name | Type |
---|---|
callback | (event : DragEvent ) => void |
Returns ​
void
onDragStart ​
• onDragStart: (callback
: (data
: OnDragStartEventData
<CustomType
>) => void
) => void
Type declaration ​
â–¸ (callback
): void
Parameters ​
Name | Type |
---|---|
callback | (data : OnDragStartEventData <CustomType >) => void |
Returns ​
void
onDrop ​
• onDrop: (callback
: (data
: OnDropData
<CustomType
>) => void
) => void
Type declaration ​
â–¸ (callback
): void
Parameters ​
Name | Type |
---|---|
callback | (data : OnDropData <CustomType >) => void |
Returns ​
void