Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "classes"

Index

Functions

addClass

  • addClass(el: Element | NodeListOf<Element> | Element, classNames: string): void
  • Add a class name or names to an element or a collection of elements

    Parameters

    • el: Element | NodeListOf<Element> | Element
    • classNames: string

    Returns void

removeClass

  • removeClass(el: Element | NodeListOf<Element> | Element, classNames: string): void
  • Remove a class name or names from an element or a collection of elements

    Parameters

    • el: Element | NodeListOf<Element> | Element
    • classNames: string

    Returns void

toggleClass

  • toggleClass(el: Element | NodeListOf<Element> | Element, classNames: string): void
  • Toggle a class name or names from an element or a collection of elements

    Parameters

    • el: Element | NodeListOf<Element> | Element
    • classNames: string

    Returns void

Generated using TypeDoc