DataTransferItem object
Represents a single data item (string or file kind) in a DataTransferItemList for a drag operation.
![]() |
Members
The DataTransferItem object has these types of members:
Methods
The DataTransferItem object has these methods.
| Method | Description |
|---|---|
| getAsFile |
Returns the file associated with the DataTransferItem. |
| getAsString |
Invokes the given callback function, passing it the DataTransferItem object string as an argument. |
| webkitGetAsEntry |
Returns the WebKitEntry (representing a file or directory) associated with the DataTransferItem. |
Properties
The DataTransferItem object has these properties.
| Property | Access type | Description |
|---|---|---|
|
Read-only |
Returns the kind of data (e.g., string or file) of the drag data item. | |
|
Read-only |
Returns the type or format of the data for the drag data item. |
Standards information
Show:
