Skip to content

DragManager.dragFile method

DragManager › dragFile

Unofficial

Start a drag operation for a single file.

Signature:

dragFile($event: DragEvent, file: TFile, source?: unknown): Draggable

Parameters:

ParameterTypeDescription
$eventDragEvent
fileTFileFile to drag.
source?unknownSource component initiating the drag.

Returns: Draggable — The created draggable item.