HTMLOptionsCollection
abstract class HTMLOptionsCollection : HTMLCollectionExposes the JavaScript HTMLOptionsCollection to Kotlin
Constructors
<init>
Exposes the JavaScript HTMLOptionsCollection to Kotlin
HTMLOptionsCollection()Properties
length
open var length: IntselectedIndex
open var selectedIndex: IntFunctions
add
fun add(
element: UnionHTMLOptGroupElementOrHTMLOptionElement,
before: dynamic = definedExternally)remove
fun remove(index: Int)Extension Functions
asList
Returns the view of this ItemArrayLike<T> collection as List<T>
fun <T> ItemArrayLike<T>.asList(): 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?)