DOMTokenList
Constructors
<init>
Exposes the JavaScript DOMTokenList to Kotlin
DOMTokenList()
Properties
value
open var value: String
Functions
add
fun add(vararg tokens: String)
contains
fun contains(token: String): Boolean
item
open fun item(index: Int): String?
remove
fun remove(vararg tokens: String)
replace
fun replace(token: String, newToken: String)
supports
fun supports(token: String): Boolean
toggle
fun toggle(
token: String,
force: Boolean = definedExternally
): Boolean
Extension Functions
asList
Returns the view of this ItemArrayLike<T>
collection as List<T>
fun <T> ItemArrayLike<T>.asList(): List<T>
get
operator fun DOMTokenList.get(index: Int): String?