Optional
initialClasses: ElementClassesAdd classes to the HTML Element.
The classes to add
addedClasses - A list of classes that were added to the state
Remove classes from the HTML Element.
The classes to remove
removedClasses - A list of classes that were removed from the state
Update the applied classes to the given state. New classes will be applied, and classes not in the new state will be removed.
The new classes state
Toggle classes from the HTML Element.
The classes and their toggle state
affectedClasses - lists of classes that were added / removed from the state
Toggle classes from the HTML Element.
The classes to remove
Optional
state: booleanForce the state of classes
affectedClasses - lists of classes that were added / removed from the state
A class to manage the applied classes on an HTML Element. The class keeps track of what classes were added and can use that to create differentials.