HTMLOptionsCollection

abstract external class HTMLOptionsCollection : 
    HTMLCollection
(source)

Platform and version requirements: JS

Exposes the JavaScript HTMLOptionsCollection to Kotlin

Constructors

<init>

HTMLOptionsCollection()

Exposes the JavaScript HTMLOptionsCollection to Kotlin

Properties

length

open var length: Int

selectedIndex

open var selectedIndex: Int

Functions

add

fun add(
    element: UnionHTMLOptGroupElementOrHTMLOptionElement,
    before: dynamic = definedExternally)

remove

fun remove(index: Int)

Inherited 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?

set

operator fun HTMLOptionsCollection.set(
    index: Int,
    option: HTMLOptionElement?)