# Interface DragAndDrop5

interface DragAndDrop5 {
autoExpandMS ?: number;
dragDrag ?: (sourceNode: FancytreeNode , data: any) => void;
dragDrop ?: (node: FancytreeNode , data: any) => void;
dragEnd ?: (sourceNode: FancytreeNode , data: any) => void;
dragEnter ?: (targetNode: FancytreeNode , data: any) => void;
dragExpand ?: (targetNode: FancytreeNode , data: any) => void;
dragLeave ?: (targetNode: FancytreeNode , data: any) => void;
dragOver ?: (targetNode: FancytreeNode , data: any) => void;
dragStart ?: (sourceNode: FancytreeNode , data: any) => void;
dropMarkerInsertOffsetX ?: number;
dropMarkerOffsetX ?: number;
multiSource ?: boolean;
preventForeignNodes ?: boolean;
preventNonNodes ?: boolean;
preventRecursiveMoves ?: boolean;
preventVoidMoves ?: boolean;
scroll ?: boolean;
scrollSensitivity ?: number;
scrollSpeed ?: number;
setTextTypeJson ?: boolean;
[key: string]: any;
}

#### Indexable

- [key: string]: any

  Support misc options

- Defined in src/public/app/types-fancytree.d.ts:914

##### Index

### Properties

autoExpandMS?
dragDrag?
dragDrop?
dragEnd?
dragEnter?
dragExpand?
dragLeave?
dragOver?
dragStart?
dropMarkerInsertOffsetX?
dropMarkerOffsetX?
multiSource?
preventForeignNodes?
preventNonNodes?
preventRecursiveMoves?
preventVoidMoves?
scroll?
scrollSensitivity?
scrollSpeed?
setTextTypeJson?

## Properties

### `Optional` autoExpandMS

autoExpandMS?: number

Expand nodes after n milliseconds of hovering.

- Defined in src/public/app/types-fancytree.d.ts:918

### `Optional` dragDrag

dragDrag?: (sourceNode: FancytreeNode , data: any) => void

- Defined in src/public/app/types-fancytree.d.ts:967

### `Optional` dragDrop

dragDrop?: (node: FancytreeNode , data: any) => void

Events (drag drop)

- Defined in src/public/app/types-fancytree.d.ts:984

### `Optional` dragEnd

dragEnd?: (sourceNode: FancytreeNode , data: any) => void

- Defined in src/public/app/types-fancytree.d.ts:968

### `Optional` dragEnter

dragEnter?: (targetNode: FancytreeNode , data: any) => void

Callback(targetNode, data), return true, to enable dnd drop

- Defined in src/public/app/types-fancytree.d.ts:972

### `Optional` dragExpand

dragExpand?: (targetNode: FancytreeNode , data: any) => void

Callback(targetNode, data), return false to prevent autoExpand

- Defined in src/public/app/types-fancytree.d.ts:980

### `Optional` dragLeave

dragLeave?: (targetNode: FancytreeNode , data: any) => void

- Defined in src/public/app/types-fancytree.d.ts:985

### `Optional` dragOver

dragOver?: (targetNode: FancytreeNode , data: any) => void

Events (drag over)

- Defined in src/public/app/types-fancytree.d.ts:976

### `Optional` dragStart

dragStart?: (sourceNode: FancytreeNode , data: any) => void

Callback(sourceNode, data), return true, to enable dnd drag

- Defined in src/public/app/types-fancytree.d.ts:966

### `Optional` dropMarkerInsertOffsetX

dropMarkerInsertOffsetX?: number

Additional offset for drop-marker with hitMode = "before"/"after"

- Defined in src/public/app/types-fancytree.d.ts:926

### `Optional` dropMarkerOffsetX

dropMarkerOffsetX?: number

Absolute position offset for .fancytree-drop-marker

- Defined in src/public/app/types-fancytree.d.ts:922

### `Optional` multiSource

multiSource?: boolean

true: Drag multiple (i.e. selected) nodes.

- Defined in src/public/app/types-fancytree.d.ts:930

### `Optional` preventForeignNodes

preventForeignNodes?: boolean

Prevent dropping nodes from different Fancytrees

- Defined in src/public/app/types-fancytree.d.ts:934

### `Optional` preventNonNodes

preventNonNodes?: boolean

Prevent dropping items other than Fancytree nodes

- Defined in src/public/app/types-fancytree.d.ts:938

### `Optional` preventRecursiveMoves

preventRecursiveMoves?: boolean

Prevent dropping nodes on own descendants

- Defined in src/public/app/types-fancytree.d.ts:942

### `Optional` preventVoidMoves

preventVoidMoves?: boolean

Prevent dropping nodes 'before self', etc.

- Defined in src/public/app/types-fancytree.d.ts:946

### `Optional` scroll

scroll?: boolean

Enable auto-scrolling while dragging

- Defined in src/public/app/types-fancytree.d.ts:950

### `Optional` scrollSensitivity

scrollSensitivity?: number

Active top/bottom margin in pixel

- Defined in src/public/app/types-fancytree.d.ts:954

### `Optional` scrollSpeed

scrollSpeed?: number

Pixel per event

- Defined in src/public/app/types-fancytree.d.ts:958

### `Optional` setTextTypeJson

setTextTypeJson?: boolean

Allow dragging of nodes to different IE windows, default: false

- Defined in src/public/app/types-fancytree.d.ts:962