vot.js - v2.4.12
    Preparing search index...

    Interface DataTransferItem

    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.

    MDN Reference

    interface DataTransferItem {
        kind: string;
        type: string;
        getAsFile(): null | File;
        getAsString(callback: null | FunctionStringCallback): void;
        webkitGetAsEntry(): null | FileSystemEntry;
    }
    Index

    Properties

    kind: string

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

    MDN Reference

    type: string

    Returns the drag data item type string.

    MDN Reference

    Methods

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

      MDN Reference

      Returns null | File