BackgroundModule mahalo/utils/element-classes

This module exports utility functions for adding and removingclasses of element's.

Index

Functions

addClass

  • addClass(element: Element, className: any): void
  • Adds a class name to an element's class list.

    Parameters
    • element: Element
    • className: any
    Returns void

removeClass

  • removeClass(element: Element, className: any): void
  • Removes a class name from an element's class list.

    Parameters
    • element: Element
    • className: any
    Returns void