All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental2.dom.DataTransfer Maven / Gradle / Ivy

There is a newer version: 1.0.139
Show newest version
package elemental2.dom;

import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class DataTransfer {
  public String dropEffect;
  public String effectAllowed;
  public FileList files;
  public DataTransferItemList items;
  public String[] types;

  public native void addElement(HTMLElement elem);

  public native void clearData();

  public native void clearData(String format);

  public native String getData(String format);

  public native boolean setData(String format, String data);

  public native void setDragImage(HTMLElement img, double x, int y);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy