HTMLCollection

abstract external class HTMLCollection : 
    UnionElementOrHTMLCollection,
    ItemArrayLike<Element>
(source)

Platform and version requirements: JS

Exposes the JavaScript HTMLCollection to Kotlin

Constructors

<init>

HTMLCollection()

Exposes the JavaScript HTMLCollection to Kotlin

Properties

length

open val length: Int

Functions

item

open fun item(index: Int): Element?

namedItem

fun namedItem(name: String): Element?

Extension Functions

asList

fun <T> ItemArrayLike<T>.asList(): List<T>

Returns the view of this ItemArrayLike<T> collection as List<T>

get

operator fun HTMLCollection.get(index: Int): Element?
operator fun HTMLCollection.get(name: String): Element?

Inheritors

HTMLFormControlsCollection

abstract external class HTMLFormControlsCollection : 
    HTMLCollection

Exposes the JavaScript HTMLFormControlsCollection to Kotlin

HTMLOptionsCollection

abstract external class HTMLOptionsCollection : 
    HTMLCollection

Exposes the JavaScript HTMLOptionsCollection to Kotlin