Skip to content

Draggable

Unofficial

Represents a draggable item in the drag-and-drop system.

Import:

import type { Draggable } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface Draggable

Properties

PropertyTypeDescription
file?TAbstractFileSingle file being dragged, if applicable.
files?TAbstractFile[]Multiple files being dragged, if applicable.
iconstringIcon identifier for the drag ghost element.
linktext?stringLink text for link-type drags.
source?unknownSource component that initiated the drag.
sourcePath?stringPath of the source file for link resolution.
titlestringDisplay title shown on the drag ghost element.
typestringType of draggable (e.g. "file", "folder", "link").

Links to this page: