Skip to content

DragManager.dragLink method

DragManager › dragLink

Unofficial

Start a drag operation for a link.

Signature:

dragLink(event: DragEvent, linkText: string, sourcePath: string, title?: string | undefined, source?: unknown): Draggable

Parameters:

ParameterTypeDescription
eventDragEventThe originating drag event.
linkTextstringLink text to drag.
sourcePathstringPath of the source file for link resolution.
title?string | undefinedDisplay title for the drag ghost.
source?unknownSource component initiating the drag.

Returns: DraggableThe created draggable item.