Constructor Summary
Public Constructor | ||
public |
constructor(element: HTMLElement) |
Method Summary
Public Methods | ||
public |
Adds a class to an element's list of classes |
|
public |
Checks if an element's list of classes contains a specific class |
|
public |
Removes a class from an element's list of classes |
|
public |
Toggles the existence of a class in an element's list of classes |
Public Constructors
public constructor(element: HTMLElement) source
Params:
Name | Type | Attribute | Description |
element | HTMLElement |
Public Methods
public add(tokens: ...string) source
Adds a class to an element's list of classes
Params:
Name | Type | Attribute | Description |
tokens | ...string |
public contains(token: string): boolean source
Checks if an element's list of classes contains a specific class
Params:
Name | Type | Attribute | Description |
token | string |