Class ElementClassManager<T>

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.

Type Parameters

  • T extends HTMLElement = HTMLElement

Constructors

Properties

Accessors

Methods

Constructors

Properties

element: T

Accessors

Methods

  • Update the applied classes to the given state. New classes will be applied, and classes not in the new state will be removed.

    Parameters

    Returns void