Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DataTransferItemList

A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.

Hierarchy

  • DataTransferItemList

Indexable

[name: number]: DataTransferItem

A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.

Index

Properties

Methods

Properties

Readonly length

length: number

Returns the number of items in the drag data store.

Methods

add

  • Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.

    Parameters

    • data: string
    • type: string

    Returns DataTransferItem | null

  • Parameters

    Returns DataTransferItem | null

clear

  • clear(): void
  • Removes all the entries in the drag data store.

    Returns void

item

  • Parameters

    • index: number

    Returns DataTransferItem

remove

  • remove(index: number): void
  • Removes the indexth entry in the drag data store.

    Parameters

    • index: number

    Returns void

Generated using TypeDoc