Skip to main content
Module

x/evt/lib/types/index.ts>dom.DragEvent

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.DragEvent
implements MouseEvent
import { type dom } from "https://deno.land/x/evt@v2.4.3/lib/types/index.ts";
const { DragEvent } = dom;

A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way.

Properties

readonly
dataTransfer: DataTransfer | null

Returns the DataTransfer object for the event.