TreeDragAndDropController

Provides support for drag and drop in TreeView.

Online Documentation

Properties

Link copied to clipboard

The mime types that the handleDrag method of this TreeDragAndDropController may add to the tree data transfer. This could be well-defined, existing, mime types, and also mime types defined by the extension.

Link copied to clipboard

The mime types that the handleDrop method of this DragAndDropController supports. This could be well-defined, existing, mime types, and also mime types defined by the extension.

Link copied to clipboard
abstract var handleDrag: (ReadonlyArray<T>, dataTransfer: DataTransfer, token: CancellationToken) -> PromiseLike<Void>??

When the user starts dragging items from this DragAndDropController, handleDrag will be called. Extensions can use handleDrag to add their DataTransferItem items to the drag and drop.

Link copied to clipboard
abstract var handleDrop: (target: T?, dataTransfer: DataTransfer, token: CancellationToken) -> PromiseLike<Void>??

Called when a drag and drop action results in a drop on the tree that this DragAndDropController belongs to.