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:

Parameter Type Description
event DragEvent The originating drag event.
linkText string Link text to drag.
sourcePath string Path of the source file for link resolution.
title? string | undefined Display title for the drag ghost.
source? unknown Source component initiating the drag.

Returns: DraggableThe created draggable item.