import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { DataTransfer } = dom;
Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API.
Properties
Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
Can be set, to change the selected operation.
The possible values are "none", "copy", "link", and "move".
Returns the kinds of operations that are to be allowed.
Can be set (during the dragstart event), to change the allowed operations.
The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
Returns a FileList of the files being dragged, if any.
Returns a DataTransferItemList object, with the drag data.