HTMLOptionsCollection

abstract external class HTMLOptionsCollection : HTMLCollection

Exposes the JavaScript HTMLOptionsCollection to Kotlin

Constructors

HTMLOptionsCollection
Link copied to clipboard
fun HTMLOptionsCollection()

Functions

add
Link copied to clipboard
fun add(element: UnionHTMLOptGroupElementOrHTMLOptionElement, before: dynamic = definedExternally)
item
Link copied to clipboard
open override fun item(index: Int): Element?
namedItem
Link copied to clipboard
fun namedItem(name: String): Element?
remove
Link copied to clipboard
fun remove(index: Int)

Properties

length
Link copied to clipboard
open override var length: Int
selectedIndex
Link copied to clipboard
open var selectedIndex: Int

Extensions

set
Link copied to clipboard
inline operator fun HTMLOptionsCollection.set(index: Int, option: HTMLOptionElement?)