DragManager
Properties
actionEl
actionEl:
null
|HTMLElement
app
app:
App
draggable
draggable:
null
|Draggable
dragStart
dragStart:
null
|DragStartEvent
ghostEl
ghostEl:
null
|HTMLElement
hoverClass
hoverClass:
string
hoverEl
hoverEl:
null
|HTMLElement
isDragOverHandled
isDragOverHandled:
boolean
overlayEl
overlayEl:
HTMLElement
shouldHideOverlay
shouldHideOverlay:
boolean
sourceClass
sourceClass:
string
sourceEls
sourceEls:
null
|HTMLElement
[]
Methods
dragFile()
dragFile(
event
,file
,source
?):Draggable
Parameters
• event: DragEvent
• file: TFile
• source?: unknown
Returns
dragFiles()
dragFiles(
event
,files
,source
?):null
|Draggable
Parameters
• event: DragEvent
• files: TAbstractFile
[]
• source?: unknown
Returns
null
| Draggable
dragFolder()
dragFolder(
event
,folder
,source
?):Draggable
Parameters
• event: DragEvent
• folder: TFolder
• source?: unknown
Returns
dragLink()
dragLink(
event
,linkText
,sourcePath
,title
?,source
?):Draggable
Parameters
• event: DragEvent
• linkText: string
• sourcePath: string
• title?: string
• source?: unknown
Returns
handleDrag()
handleDrag(
el
,draggableGetter
):void
Parameters
• el: HTMLElement
• draggableGetter
Returns
void
handleDrop()
handleDrop(
el
,dropHandler
,draggable
?):void
Parameters
• el: HTMLElement
• dropHandler
• draggable?: boolean
Returns
void
hideOverlay()
hideOverlay():
void
Returns
void
onDragEnd()
onDragEnd():
void
Returns
void
onDragLeave()
onDragLeave(
event
):void
Parameters
• event: DragEvent
Returns
void
onDragOver()
onDragOver(
event
):void
Parameters
• event: DragEvent
Returns
void
onDragOverFirst()
onDragOverFirst():
void
Returns
void
onDragStart()
onDragStart(
event
,draggable
):void
Parameters
• event: DragEvent
• draggable: Draggable
Returns
void
onDragStartGlobal()
onDragStartGlobal(
event
):void
Parameters
• event: DragEvent
Returns
void
onTouchEnd()
onTouchEnd(
event
):void
Parameters
• event: TouchEvent
Returns
void
removeOverlay()
removeOverlay():
void
Returns
void
setAction()
setAction(
action
):void
Parameters
• action: null
| string
Returns
void
showOverlay()
showOverlay(
doc
,rect
):void
Parameters
• doc: Document
• rect: DOMRect
Returns
void
updateHover()
updateHover(
hoverEl
,hoverClass
):void
Parameters
• hoverEl: null
| HTMLElement
• hoverClass: string
Returns
void
updateSource()
updateSource(
sourceEls
,sourceClass
):void
Parameters
• sourceEls: null
| HTMLElement
[]
• sourceClass: string
Returns
void