Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/deps/dom.ts>DOMTokenList

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class DOMTokenList
import { DOMTokenList } from "https://deno.land/x/lume@v1.17.5/deps/dom.ts";

Constructors

new
DOMTokenList(onChange: (className: string) => void, key: CTOR_KEY)

Properties

readonly
length
value: string

Methods

add(...elements: Array<string>)
contains(element: string)
entries(): IterableIterator<[number, string]>
forEach(callback: (
value: string,
index: number,
) => void
)
item(index: number)
keys(): IterableIterator<number>
remove(...elements: Array<string>)
replace(oldToken: string, newToken: string)
supports(): never
toggle(element: string, force?: boolean)
values(): IterableIterator<string>
[Symbol.iterator](): IterableIterator<string>
interface DOMTokenList
import { type DOMTokenList } from "https://deno.land/x/lume@v1.17.5/deps/dom.ts";

Index Signatures

[index: number]: string