Liking cljdoc? Tell your friends :D

web.DOMTokenList

The DOMTokenList interface represents a set of space-separated Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. is indexed beginning with 0 as with JavaScript js.Array objects. is always case-sensitive.

The DOMTokenList interface represents a set of space-separated
Such a set is returned by `Element.classList`, `HTMLLinkElement.relList`,
`HTMLAreaElement.relList`, `HTMLIframeElement.sandbox`, or `HTMLOutputElement.htmlFor`.
is indexed beginning with 0 as with JavaScript `js.Array` objects.
is always case-sensitive.
raw docstring

addcljs

(add this & args)

Method.

The add() method of the web.DOMTokenList interface adds the token to the list.

tokenList.add(token1[, token2[, ...]]);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add

Method.

The add() method of the `web.DOMTokenList` interface adds the
token to the list.

`tokenList.add(token1[, token2[, ...]]);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add`
sourceraw docstring

containscljs

(contains this token)

Method.

The contains() method of the web.DOMTokenList interface returns js.Boolean — true if the underlying list contains the given otherwise false.

tokenList.contains(token);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/contains

Method.

The contains() method of the `web.DOMTokenList` interface returns
`js.Boolean` — true if the underlying list contains the given
otherwise false.

`tokenList.contains(token);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/contains`
sourceraw docstring

entriescljs

(entries this)

Method.

The DOMTokenList.entries() method returns an iterator allowing to go through all key/value pairs contained in this object. The are web.DOMString objects, each representing a single token.

tokenList.entries();

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/entries

Method.

The DOMTokenList.entries() method returns an `iterator` allowing
to go through all key/value pairs contained in this object. The
are `web.DOMString` objects, each representing a single token.

`tokenList.entries();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/entries`
sourceraw docstring

for-eachcljs

(for-each this & args)

Method.

The forEach() method of the web.DOMTokenList interface calls callback given in parameter once for each value pair in the list, insertion order.

tokenList.forEach(callback); tokenList.forEach(callback, argument);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/forEach

Method.

The forEach() method of the `web.DOMTokenList` interface calls
callback given in parameter once for each value pair in the list,
insertion order.

`tokenList.forEach(callback);
tokenList.forEach(callback, argument);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/forEach`
sourceraw docstring

itemcljs

(item this index)

Method.

The item() method of the web.DOMTokenList interface returns item in the list by its index.

tokenList.item(index);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/item

Method.

The item() method of the `web.DOMTokenList` interface returns
item in the list by its index.

`tokenList.item(index);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/item`
sourceraw docstring

keyscljs

(keys this)

Method.

The keys() method of the web.DOMTokenList interface returns iterator allowing to go through all keys contained in this The keys are of type unsigned integer.

tokenList.keys();

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/keys

Method.

The keys() method of the `web.DOMTokenList` interface returns
`iterator` allowing to go through all keys contained in this
The keys are of type unsigned integer.

`tokenList.keys();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/keys`
sourceraw docstring

lengthcljs

(length this)

Property.

[Read Only]

The length read-only property of the web.DOMTokenList interface an integer representing the number of objects stored in the object.

tokenList.length;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/length

Property.

[Read Only]

The length read-only property of the `web.DOMTokenList` interface
an integer representing the number of objects stored in the object.

`tokenList.length;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/length`
sourceraw docstring

removecljs

(remove this & args)

Method.

The remove() method of the web.DOMTokenList interface removes specified tokens from the list.

tokenList.remove(token1[, token2[, ...]]);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove

Method.

The remove() method of the `web.DOMTokenList` interface removes
specified tokens from the list.

`tokenList.remove(token1[, token2[, ...]]);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove`
sourceraw docstring

replacecljs

(replace this old-token new-token)

Method.

The replace() method of the web.DOMTokenList interface replaces existing token with a new token.

tokenList.replace(oldToken,newToken);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/replace

Method.

The replace() method of the `web.DOMTokenList` interface replaces
existing token with a new token.

`tokenList.replace(oldToken,newToken);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/replace`
sourceraw docstring

supportscljs

(supports this token)

Method.

[Experimental]

The supports() method of the web.DOMTokenList interface returns if a given token is in the associated attribute's supported tokens. method is intended to support feature detection.

var boolean = element.supports(token)

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/supports

Method.

[Experimental]

The supports() method of the `web.DOMTokenList` interface returns
if a given token is in the associated attribute's supported tokens.
method is intended to support feature detection.

`var boolean = element.supports(token)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/supports`
sourceraw docstring

togglecljs

(toggle this token force)

Method.

The toggle() method of the web.DOMTokenList interface removes given token from the list and returns false. If token doesn't it's added and the function returns true.

tokenList.toggle(token, force);

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle

Method.

The toggle() method of the `web.DOMTokenList` interface removes
given token from the list and returns false. If token doesn't
it's added and the function returns true.

`tokenList.toggle(token, force);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle`
sourceraw docstring

valuecljs

(value this)

Method.

The value property of the web.DOMTokenList interface returns value of the list as a web.DOMString, or clears and sets the to the given value.

tokenList.value;

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value

Method.

The value property of the `web.DOMTokenList` interface returns
value of the list as a `web.DOMString`, or clears and sets the
to the given value.

`tokenList.value;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value`
sourceraw docstring

valuescljs

(values this)

Method.

The values() method of the web.DOMTokenList interface returns iterator allowing developers to go through all values contained the DOMTokenList. The individual values are web.DOMString objects.

tokenList.values();

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/values

Method.

The values() method of the `web.DOMTokenList` interface returns
`iterator` allowing developers to go through all values contained
the DOMTokenList. The individual values are `web.DOMString` objects.

`tokenList.values();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/values`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close