Results 21 - 40 of 43

DataTransferItemList.clear()

The DataTransferItemList.clear() method removes all DataTransferItem objects from the drag data items list, leaving the list empty.
API clear DataTransferItemList drag and drop HTML DOM HTML Drag and Drop API Method NeedsLiveSample Reference

DataTransferItemList.DataTransferItem()

The DataTransferItemList() getter method implements support for accessing items in the DataTransferItemList using array-style syntax (that is DataTransferItemList[index]).
API DataTransferItemList drag and drop Getter HTML DOM HTML Drag and Drop API Method NeedsLiveSample Reference

DataTransferItemList.length

The read-only DataTransferItemList.length property returns the number of items in the list. If the list has no items, or is disabled (because it has no data store at all), this property returns zero.
API DataTransferItemList drag and drop HTML DOM HTML Drag and Drop API length NeedsLiveSample Property Reference

DataTransferItemList.remove()

The DataTransferItemList.remove() method removes the DataTransferItem at the specified index from the list. If the index is less than zero or greater than one less than the length of the list, the list will not be changed.
API DataTransferItemList drag and drop HTML DOM HTML Drag and Drop API Method NeedsLiveSample Reference remove

DataTransfer.clearData()

The DataTransfer.clearData() method removes the drag operation's drag data for the given type. If data for the given type does not exist, this method does nothing.
API clearData DataTransfer drag and drop HTML DOM Method Reference

DataTransfer.dropEffect

The DataTransfer.dropEffect property controls the feedback (typically visual) the user is given during a drag and drop operation. It will affect which cursor is displayed while dragging. For example, when the user hovers over a target drop element, the browser's cursor may indicate which type of operation will occur.
API drag and drop HTML DOM Property Reference

DataTransfer.effectAllowed

The DataTransfer.effectAllowed property specifies the effect that is allowed for a drag operation. The copy operation is used to indicate that the data being dragged will be copied from its present location to the drop location. The move operation is used to indicate that the data being dragged will be moved, and the link operation is used to indicate that some form of relationship or connection will be created between the source and drop locations.
API drag and drop HTML DOM Property Reference

DataTransfer.files

The DataTransfer.files property is a list of the files in the drag operation. If the operation includes no files, the list is empty.
API drag and drop HTML DOM Property Reference

DataTransfer.getData()

The DataTransfer.getData() method retrieves drag data (as a DOMString) for the specified type. If the drag operation does not include data, this method returns an empty string.
API drag and drop HTML DOM Method Reference

DataTransfer.items

The DataTransfer.items property is a list of the data transfer items in a drag operation. The list includes one item for each item in the operation and if the operation had no items, the list is empty.
API drag and drop HTML DOM Property Reference

DataTransfer.setData()

The DataTransfer.setData() method sets the drag operation's drag data to the specified data and type. If data for the given type does not exist, it is added at the end of the drag data store, such that the last item in the types list will be the new type. If data for the given type already exists, the existing data is replaced in the same position. That is, the order of the types list is not changed when replacing data of the same type.
API drag and drop HTML DOM Method Reference