Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/evt/lib/types/lib.dom.d.ts>DataTransferItemList

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface DataTransferItemList
import { type DataTransferItemList } from "https://deno.land/x/windmill@v1.345.2/node_modules/evt/lib/types/lib.dom.d.ts";

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.

Properties

readonly
length: number

Returns the number of items in the drag data store.

Methods

add(data: string, type: string): DataTransferItem | null

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.

add(data: File): DataTransferItem | null
clear(): void

Removes all the entries in the drag data store.

item(index: number): DataTransferItem
remove(index: number): void

Removes the indexth entry in the drag data store.