Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-plugins/real-cookie-banner/src/public/ts/hooks/usePerfectScrollbar"

Index

Functions

usePerfectScrollbar

  • usePerfectScrollbar(__namedParameters: { parentContainer: string; thumbColor: string }): { ref: MutableRefObject<undefined>; scrollbar: PerfectScrollbar }
  • Create a simplified perfect-scrollbar container with predefined style. Please note the following things:

    • the container must have a position style.
    • the container must be a normal container element.

    This implementation currently only supports y-axis (vertical) due to minimization reasons.

    see

    https://github.com/mdbootstrap/perfect-scrollbar

    Parameters

    • __namedParameters: { parentContainer: string; thumbColor: string }
      • parentContainer: string
      • thumbColor: string

    Returns { ref: MutableRefObject<undefined>; scrollbar: PerfectScrollbar }

    • ref: MutableRefObject<undefined>
    • scrollbar: PerfectScrollbar

Generated using TypeDoc