![]()
Adds a class to an element. Does not add multiples of class names. This
method may throw a DOM exception for an invalid or empty class name if
DOMTokenList is used.
|
code » | |||
![]()
Convenience method to add a number of class names at once.
|
code » | |||
![]()
Adds and removes a class of an element. Unlike
goog.dom.classlist.swap , this method adds the classToAdd regardless
of whether the classToRemove was present and had been removed. This method
may throw a DOM exception if the class names are empty or invalid.
|
code » | |||
Returns true if an element has a class. This method may throw a DOM
exception for an invalid or empty class name if DOMTokenList is used.
|
code » | |||
![]()
Adds or removes a class depending on the enabled argument. This method
may throw a DOM exception for an invalid or empty class name if DOMTokenList
is used.
|
code » | |||
![]()
Adds or removes a set of classes depending on the enabled argument. This
method may throw a DOM exception for an invalid or empty class name if
DOMTokenList is used.
|
code » | |||
![]()
No description.
|
code » | |||
![]()
Gets an array-like object of class names on an element.
Arguments:
Returns: !goog.array.ArrayLike
Class names on
element .
|
code » | |||
![]()
Removes a class from an element. This method may throw a DOM exception
for an invalid or empty class name if DOMTokenList is used.
|
code » | |||
![]()
Removes a set of classes from an element. Prefer this call to
repeatedly calling
goog.dom.classlist.remove if you want to remove
a large set of class names at once.
Arguments:
|
code » | |||
![]()
Sets the entire class name of an element.
|
code » | |||
Switches a class on an element from one to another without disturbing other
classes. If the fromClass isn't removed, the toClass won't be added. This
method may throw a DOM exception if the class names are empty or invalid.
|
code » | |||
Removes a class if an element has it, and adds it the element doesn't have
it. Won't affect other classes on the node. This method may throw a DOM
exception if the class name is empty or invalid.
|
code » |