Skip to main content

Interface: DragAndDropContextProps<T>

Type parameters

NameType
Tany

Properties

abortProgrammaticDrag

abortProgrammaticDrag: () => void

Type declaration

▸ (): void

Returns

void

Defined in

types.ts:319


completeProgrammaticDrag

completeProgrammaticDrag: () => void

Type declaration

▸ (): void

Returns

void

Defined in

types.ts:320


draggingItems

Optional draggingItems: TreeItem<T>[]

Defined in

types.ts:315


draggingPosition

Optional draggingPosition: DraggingPosition

Defined in

types.ts:323


isProgrammaticallyDragging

Optional isProgrammaticallyDragging: boolean

Defined in

types.ts:317


itemHeight

itemHeight: number

Defined in

types.ts:316


linearItems

Optional linearItems: { depth: number ; item: TreeItemIndex }[]

Defined in

types.ts:325


onDragLeaveContainerHandler

onDragLeaveContainerHandler: (e: DragEvent, containerRef: MutableRefObject<undefined | HTMLElement>) => void

Type declaration

▸ (e, containerRef): void

Parameters
NameType
eDragEvent
containerRefMutableRefObject<undefined | HTMLElement>
Returns

void

Defined in

types.ts:331


onDragOverTreeHandler

onDragOverTreeHandler: (e: DragEvent, treeId: string, containerRef: MutableRefObject<undefined | HTMLElement>) => void

Type declaration

▸ (e, treeId, containerRef): void

Parameters
NameType
eDragEvent
treeIdstring
containerRefMutableRefObject<undefined | HTMLElement>
Returns

void

Defined in

types.ts:326


onStartDraggingItems

onStartDraggingItems: (items: TreeItem<T>[], treeId: string) => void

Type declaration

▸ (items, treeId): void

Parameters
NameType
itemsTreeItem<T>[]
treeIdstring
Returns

void

Defined in

types.ts:314


programmaticDragDown

programmaticDragDown: () => void

Type declaration

▸ (): void

Returns

void

Defined in

types.ts:322


programmaticDragUp

programmaticDragUp: () => void

Type declaration

▸ (): void

Returns

void

Defined in

types.ts:321


startProgrammaticDrag

startProgrammaticDrag: () => void

Type declaration

▸ (): void

Returns

void

Defined in

types.ts:318


viableDragPositions

Optional viableDragPositions: Object

Index signature

[treeId: string]: DraggingPosition[]

Defined in

types.ts:324