Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataTransferItem

Encapsulates data transferred during drag and drop operations.

Hierarchy

  • DataTransferItem

Index

Constructors(1)

Methods(2)

Properties(1)

Constructors(1)

constructor

Methods(2)

asString

asFile

  • 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.

Properties(1)

Readonly value

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.

Generated by TypeDoc. Maintained by 洛竹