ElectronItem
Unofficial
The item to drag during a drag-and-drop operation.
Import:
import type { ElectronItem } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface ElectronItemProperties
| Property | Type | Description | |
|---|---|---|---|
| file | string | The path to the file being dragged. | |
| files? | string[] | The paths to the files being dragged. Overrides the file field. | |
| icon | ElectronNativeImage | string | The image shown under the cursor while dragging. Must be non-empty on macOS. |