A map containing a mapping of the mime type of the corresponding transferred data.
Drag and drop controllers that implement {@link TreeDragAndDropController.handleDrag handleDrag
} can add additional mime types to the
data transfer. These additional mime types will only be included in the handleDrop
when the the drag was initiated from
an element in the same drag and drop controller.
Methods
forEach(callbackfn:(item:DataTransferItem, mimeType:String, dataTransfer:DataTransfer) ‑> Void, ?thisArg:Any):Void
Allows iteration through the data transfer items.
Parameters:
callbackfn | Callback for iteration through the data transfer items. |
---|---|
thisArg | The |
get(mimeType:String):Null<DataTransferItem>
Retrieves the data transfer item for a given mime type.
Parameters:
mimeType | The mime type to get the data transfer item for, such as |
---|
set(mimeType:String, value:DataTransferItem):Void
Sets a mime type to data transfer item mapping.
Parameters:
mimeType | The mime type to set the data for. Mimes types stored in lower case, with case-insensitive looks up. |
---|---|
value | The data transfer item for the given mime type. |