DOMTokenList

@native @JSGlobal @JSType
class DOMTokenList extends DOMList[String]

This type represents a set of space-separated tokens. Commonly returned by HTMLElement.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList or HTMLAreaElement.relList. It is indexed beginning with 0 as with JavaScript arrays. DOMTokenList is always case-sensitive.

trait DOMList[String]
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def add(token: String): Unit
def contains(token: String): Boolean
def item(index: Int): String
def remove(token: String): Unit
def toggle(token: String): Boolean
def toggle(token: String, force: Boolean): Boolean

Inherited methods

@JSBracketAccess
def apply(index: Int): String
Inherited from:
DOMList
def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def length: Int
Inherited from:
DOMList
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object