--- title: DataTransferItemList slug: Web/API/DataTransferItemList tags: - API - DataTransferItemList - HTML DOM - HTML Drag and Drop API - Interface - NeedsTranslation - Reference - TopicStub - drag and drop translation_of: Web/API/DataTransferItemList ---
The DataTransferItemList
object is a list of {{domxref("DataTransferItem")}} objects representing items being dragged. During a drag operation, each {{domxref("DragEvent")}} has a {{domxref("DragEvent.dataTransfer","dataTransfer")}} property and that property is a DataTransferItemList
.
This interface has no constructor.
unsigned long
that is the number of drag items in the list.Each of this interface's methods and properties has a reference page, and each reference page has an example of its usage.
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', 'interaction.html#datatransferitemlist','DataTransferItemList')}} | {{Spec2('HTML WHATWG')}} | |
{{SpecName('HTML5.1', 'editing.html#datatransferitemlist','DataTransferItemList')}} | {{Spec2('HTML5.1')}} | Not included in W3C HTML5 {{Spec2('HTML5 W3C')}} |
{{Compat("api.DataTransferItemList")}}