js.web.dom.FileList Maven / Gradle / Ivy
package js.web.dom;
import js.util.collections.ArrayLike;
import org.teavm.jso.JSBody;
import javax.annotation.Nullable;
/**
* An object of this type is returned by the files property of the HTML <input> element; this lets you access
* the list of files selected with the <input type="file"> element. It's also used for a list of files dropped
* into
* web content when using the drag and drop API; see the DataTransfer object for details on this usage.
*/
public interface FileList extends ArrayLike {
@JSBody(script = "return FileList.prototype")
static FileList prototype() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(script = "return new FileList()")
static FileList create() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@Nullable
File item(int index);
}