Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "internal/dnd"

Index

Type aliases

IDragEffect

IDragEffect: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all"

Functions

copyDnD

  • copyDnD(e: DragEvent): boolean

dragAble

  • dragAble(node: HTMLElement, onDragStart: function, stopPropagation?: boolean): void

dropAble

  • dropAble(node: HTMLElement, mimeTypes: string[], onDrop: function, onDragOver?: null | function, stopPropagation?: boolean, canDrop?: function): void
  • Parameters

    • node: HTMLElement
    • mimeTypes: string[]
    • onDrop: function
    • Default value onDragOver: null | function = null
    • Default value stopPropagation: boolean = false
    • Default value canDrop: function = (() => true)
        • (): boolean
        • Returns boolean

    Returns void

hasDnDType

  • hasDnDType(e: DragEvent, typesToCheck: string[]): boolean
  • Parameters

    • e: DragEvent
    • Rest typesToCheck: string[]

    Returns boolean

updateDropEffect

  • updateDropEffect(e: DragEvent): void