Interface: DragAndDropContextProps<T>
Type parameters
Name | Type |
---|---|
T | any |
Properties
abortProgrammaticDrag
• abortProgrammaticDrag: () => void
Type declaration
▸ (): void
Returns
void
Defined in
completeProgrammaticDrag
• completeProgrammaticDrag: () => void
Type declaration
▸ (): void
Returns
void
Defined in
draggingItems
• Optional
draggingItems: TreeItem
<T
>[]
Defined in
draggingPosition
• Optional
draggingPosition: DraggingPosition
Defined in
isProgrammaticallyDragging
• Optional
isProgrammaticallyDragging: boolean
Defined in
itemHeight
• itemHeight: number
Defined in
linearItems
• Optional
linearItems: { depth
: number
; item
: TreeItemIndex
}[]
Defined in
onDragLeaveContainerHandler
• onDragLeaveContainerHandler: (e
: DragEvent
, containerRef
: MutableRefObject
<undefined
| HTMLElement
>) => void
Type declaration
▸ (e
, containerRef
): void
Parameters
Name | Type |
---|---|
e | DragEvent |
containerRef | MutableRefObject <undefined | HTMLElement > |
Returns
void
Defined in
onDragOverTreeHandler
• onDragOverTreeHandler: (e
: DragEvent
, treeId
: string
, containerRef
: MutableRefObject
<undefined
| HTMLElement
>) => void
Type declaration
▸ (e
, treeId
, containerRef
): void
Parameters
Name | Type |
---|---|
e | DragEvent |
treeId | string |
containerRef | MutableRefObject <undefined | HTMLElement > |
Returns
void
Defined in
onStartDraggingItems
• onStartDraggingItems: (items
: TreeItem
<T
>[], treeId
: string
) => void
Type declaration
▸ (items
, treeId
): void
Parameters
Name | Type |
---|---|
items | TreeItem <T >[] |
treeId | string |
Returns
void
Defined in
programmaticDragDown
• programmaticDragDown: () => void
Type declaration
▸ (): void
Returns
void
Defined in
programmaticDragUp
• programmaticDragUp: () => void
Type declaration
▸ (): void
Returns
void
Defined in
startProgrammaticDrag
• startProgrammaticDrag: () => void
Type declaration
▸ (): void
Returns
void
Defined in
viableDragPositions
• Optional
viableDragPositions: Object
Index signature
▪ [treeId: string
]: DraggingPosition
[]