Liking cljdoc? Tell your friends :D
ClojureScript only.

dots.vscode.data-transfer-item

Encapsulates data transferred during drag and drop operations.

Encapsulates data transferred during drag and drop operations.
raw docstring

as-filecljs

(as-file data-transfer-item)

Try getting the {@link DataTransferFile file} associated with this data transfer item.

Note that the file object is only valid for the scope of the drag and drop operation.

Returns: DataTransferFile | undefined - The file for the data transfer or undefined if the item is either not a file or the file data cannot be accessed.

Try getting the {@link DataTransferFile file} associated with this data transfer item.

Note that the file object is only valid for the scope of the drag and drop operation.

**Returns:** `DataTransferFile | undefined` - The file for the data transfer or `undefined` if the item is either not a file or the
file data cannot be accessed.
sourceraw docstring

as-stringcljs

(as-string data-transfer-item)

Get a string representation of this item.

If {@linkcode DataTransferItem.value } is an object, this returns the result of json stringifying {@linkcode DataTransferItem.value } value.

Returns: Thenable<string>

Get a string representation of this item.

If {@linkcode DataTransferItem.value } is an object, this returns the result of json stringifying {@linkcode DataTransferItem.value } value.

**Returns:** `Thenable<string>`
sourceraw docstring

valuecljs

(value data-transfer-item)

Custom data stored on this item.

You can use value to share data across operations. The original object can be retrieved so long as the extension that created the DataTransferItem runs in the same extension host.

Custom data stored on this item.

You can use `value` to share data across operations. The original object can be retrieved so long as the extension that
created the `DataTransferItem` runs in the same extension host.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close