DOMTokenList

abstract external class DOMTokenList : ItemArrayLike<String>

Exposes the JavaScript DOMTokenList to Kotlin

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun add(vararg tokens: String)
Link copied to clipboard
fun contains(token: String): Boolean
Link copied to clipboard
open override fun item(index: Int): String?
Link copied to clipboard
fun remove(vararg tokens: String)
Link copied to clipboard
fun replace(token: String, newToken: String)
Link copied to clipboard
fun supports(token: String): Boolean
Link copied to clipboard
fun toggle(token: String, force: Boolean = definedExternally): Boolean

Properties

Link copied to clipboard
abstract val length: Int
Link copied to clipboard
open var value: String

Extensions

Link copied to clipboard

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

Link copied to clipboard
inline operator fun DOMTokenList.get(index: Int): String?