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 DraggableProperties
| Property | Type | Description | |
|---|---|---|---|
| file? | TAbstractFile | Single file being dragged, if applicable. | |
| files? | TAbstractFile[] | Multiple files being dragged, if applicable. | |
| icon | string | Icon identifier for the drag ghost element. | |
| linktext? | string | Link text for link-type drags. | |
| source? | unknown | Source component that initiated the drag. | |
| sourcePath? | string | Path of the source file for link resolution. | |
| title | string | Display title shown on the drag ghost element. | |
| type | string | Type of draggable (e.g. "file", "folder", "link"). |
Links to this page: