Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DataTransferItem

One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.

Hierarchy

  • DataTransferItem

Index

Properties

Readonly kind

kind: string

Returns the drag data item kind, one of: "string", "file".

Readonly type

type: string

Returns the drag data item type string.

Methods

getAsFile

  • getAsFile(): File | null
  • Returns a File object, if the drag data item kind is File.

    Returns File | null

getAsString

  • Invokes the callback with the string data as the argument, if the drag data item kind is text.

    Parameters

    Returns void

webkitGetAsEntry

  • webkitGetAsEntry(): any
  • Returns any

Generated using TypeDoc