class js.html.DOMTokenList

Available on js

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.

Documentation for this class was provided by MDN.

Instance Fields

function add(tokens:String):Void

function contains(token:String):Bool

function item(index:Int):String

function remove(tokens:String):Void

function toString():String

function toggle(token:String, ?force:Bool):Bool