
elemental2.dom.NodeList Maven / Gradle / Ivy
package elemental2.dom;
import elemental2.core.JsIterable;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.base.JsArrayLike;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class NodeList implements JsIterable, JsArrayLike {
@JsFunction
public interface ForEachCallbackFn {
Object onInvoke(T p0, double p1, NodeList p2);
}
public int length;
public native void forEach(NodeList.ForEachCallbackFn callback, S thisobj);
public native void forEach(NodeList.ForEachCallbackFn callback);
public native T item(int index);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy