Options
All
  • Public
  • Public/Protected
  • All
Menu

Encapsulates data transferred during drag and drop operations.

Hierarchy

  • DataTransferItem

Index

Constructors

Properties

Methods

Constructors

Properties

value: any

Custom data stored on this item.

You can use value to share data across operations. The original object can be retrieved so long as the extension that created the DataTransferItem runs in the same extension host.

Methods

  • Try getting the file associated with this data transfer item.

    Note that the file object is only valid for the scope of the drag and drop operation.

    Returns undefined | DataTransferFile

    The file for the data transfer or undefined if the item is either not a file or the file data cannot be accessed.