• Adds or removes the given css class(es), depending on the value enabled. If enabled is true, this function ensures that the classes are present. If enabled is false, it ensures that the class is not present.

    Parameters

    • node: HTMLElement

      a dom node

    • classes: CssClasses

      a series of css classes

    • enabled: boolean

      whether to add or remove the classes

    Returns void