Function toggleClassOnClick

  • Adds a click event listener to elements which triggers css class toggling

    Parameters

    • clickSelectors: string | string[]

      one or more css selectors for the elements which shall listen to click events

    • selectors2toggle: string | string[]

      one or more css class selectors for the elements with the css classes to toggle

    • toggleClassNames: string | string[]

      one or more css class names which shall toggle

    Returns void

Generated using TypeDoc