NodeList

abstract external class NodeList<T : Node> : ListLike<T> (source)

NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().

MDN Reference

Inheritors

Properties

Link copied to clipboard
abstract val length: Int

Functions

Link copied to clipboard
abstract fun entries(): JsIterator<JsTuple2<Int, T>>
Link copied to clipboard
abstract fun forEach(action: (item: T) -> Unit)
Link copied to clipboard
open operator fun get(index: Int): T
open operator fun get(key: Symbol.iterator): () -> JsIterator<T>
Link copied to clipboard
fun item(index: Int): T?

Returns the node with index index from the collection. The nodes are sorted in tree order.

Link copied to clipboard
open inline operator fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun keys(): JsIterator<Int>
Link copied to clipboard
abstract fun values(): JsIterator<T>