Skip to content

DragManager

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:13

Properties

actionEl

actionEl: null | HTMLElement

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:14


app

app: App

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:15


draggable

draggable: null | Draggable

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:16


dragStart

dragStart: null | DragStartEvent

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:17


ghostEl

ghostEl: null | HTMLElement

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:18


hoverClass

hoverClass: string

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:19


hoverEl

hoverEl: null | HTMLElement

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:20


isDragOverHandled

isDragOverHandled: boolean

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:21


overlayEl

overlayEl: HTMLElement

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:22


shouldHideOverlay

shouldHideOverlay: boolean

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:23


sourceClass

sourceClass: string

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:24


sourceEls

sourceEls: null | HTMLElement[]

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:25

Methods

dragFile()

dragFile(event, file, source?): Draggable

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:27

Parameters

event

DragEvent

file

TFile

source?

unknown

Returns

Draggable


dragFiles()

dragFiles(event, files, source?): null | Draggable

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:28

Parameters

event

DragEvent

files

TAbstractFile[]

source?

unknown

Returns

null | Draggable


dragFolder()

dragFolder(event, folder, source?): Draggable

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:29

Parameters

event

DragEvent

folder

TFolder

source?

unknown

Returns

Draggable


dragLink(event, linkText, sourcePath, title?, source?): Draggable

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:30

Parameters

event

DragEvent

linkText

string

sourcePath

string

title?

string

source?

unknown

Returns

Draggable


handleDrag()

handleDrag(el, draggableGetter): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:31

Parameters

el

HTMLElement

draggableGetter

(event) => null | Draggable

Returns

void


handleDrop()

handleDrop(el, dropHandler, draggable?): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:32

Parameters

el

HTMLElement

dropHandler

(event, draggable, isOver) => null | DropResult

draggable?

boolean

Returns

void


hideOverlay()

hideOverlay(): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:37

Returns

void


onDragEnd()

onDragEnd(): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:38

Returns

void


onDragLeave()

onDragLeave(event): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:39

Parameters

event

DragEvent

Returns

void


onDragOver()

onDragOver(event): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:40

Parameters

event

DragEvent

Returns

void


onDragOverFirst()

onDragOverFirst(): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:41

Returns

void


onDragStart()

onDragStart(event, draggable): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:42

Parameters

event

DragEvent

draggable

Draggable

Returns

void


onDragStartGlobal()

onDragStartGlobal(event): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:43

Parameters

event

DragEvent

Returns

void


onTouchEnd()

onTouchEnd(event): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:44

Parameters

event

TouchEvent

Returns

void


removeOverlay()

removeOverlay(): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:45

Returns

void


setAction()

setAction(action): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:46

Parameters

action

null | string

Returns

void


showOverlay()

showOverlay(doc, rect): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:47

Parameters

doc

Document

rect

DOMRect

Returns

void


updateHover()

updateHover(hoverEl, hoverClass): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:48

Parameters

hoverEl

null | HTMLElement

hoverClass

string

Returns

void


updateSource()

updateSource(sourceEls, sourceClass): void

Defined in: src/obsidian/internals/DragManager/DragManager.d.ts:49

Parameters

sourceEls

null | HTMLElement[]

sourceClass

string

Returns

void