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>DataTransferItem

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 DataTransferItem
import { type DataTransferItem } from "https://deno.land/x/windmill@v1.333.5/node_modules/evt/lib/types/lib.dom.d.ts";

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.

Properties

readonly
kind: string

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

readonly
type: string

Returns the drag data item type string.

Methods

getAsFile(): File | null

Returns a File object, if the drag data item kind is File.

getAsString(callback: FunctionStringCallback | null): void

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

webkitGetAsEntry(): any