@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="DataTransferItem")
public class DataTransferItem
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
DataTransferItem() |
| Modifier and Type | Method and Description |
|---|---|
@JsNullable File |
getAsFile()
If the item is a file, the DataTransferItem.getAsFile() method returns the drag data item's File object.
|
void |
getAsString(FunctionStringCallback _callback)
The DataTransferItem.getAsString() method invokes the given callback with the drag data item's string data as the argument if the item's kind is a Plain unicode string (i.e.
|
java.lang.String |
kind()
The read-only DataTransferItem.kind property returns a DataTransferItem representing the drag data item kind: some text or some file.
|
java.lang.String |
type()
The read-only DataTransferItem.type property returns the type (format) of the DataTransferItem object representing the drag data item.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@JsProperty(name="kind") @Nonnull public java.lang.String kind()
@JsProperty(name="type") @Nonnull public java.lang.String type()
public @JsNullable File getAsFile()
public void getAsString(@Nullable
FunctionStringCallback _callback)