Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/react-cookie-banner/src/hooks/banner/useBannerStateContextCallbacks"

Index

Type aliases

SetContextValueFunction

SetContextValueFunction: Dispatch<SetStateAction<Partial<BannerContextProps>>>

Functions

Const cancelEvent

  • cancelEvent(e: MouseEvent): void
  • Parameters

    • e: MouseEvent

    Returns void

useBannerStateContextCallbacks

  • useBannerStateContextCallbacks(__namedParameters: { revokeConsent: (state: BannerContextProps) => Promise<void>; toggleOverlay: (Anonymous function) }): { onClose: any; openBanner: any; openHistory: any; revokeConsent: any; selectHistoryEntry: any; updateCookieChecked: any; updateGroupChecked: any; updateIndividualPrivacyOpen: any; updateTcfFilterBy: any }
  • Parameters

    Returns { onClose: any; openBanner: any; openHistory: any; revokeConsent: any; selectHistoryEntry: any; updateCookieChecked: any; updateGroupChecked: any; updateIndividualPrivacyOpen: any; updateTcfFilterBy: any }

    • onClose: function
      • Parameters

        Returns void

    • openBanner: function
      • openBanner(setContextValue: SetContextValueFunction, ...args: Parameters<BannerContextProps["openBanner"]>): void
      • Parameters

        Returns void

    • openHistory: function
      • openHistory(setContextValue: SetContextValueFunction, ...args: Parameters<BannerContextProps["openHistory"]>): void
      • Parameters

        Returns void

    • revokeConsent: function
      • revokeConsent(setContextValue: SetContextValueFunction, ...args: Parameters<BannerContextProps["revokeConsent"]>): void
      • Parameters

        Returns void

    • selectHistoryEntry: function
      • selectHistoryEntry(setContextValue: SetContextValueFunction, ...args: Parameters<BannerContextProps["selectHistoryEntry"]>): void
      • Parameters

        Returns void

    • updateCookieChecked: function
      • updateCookieChecked(setContextValue: SetContextValueFunction, ...args: Parameters<BannerContextProps["updateCookieChecked"]>): void
      • Parameters

        Returns void

    • updateGroupChecked: function
      • updateGroupChecked(setContextValue: SetContextValueFunction, ...args: Parameters<BannerContextProps["updateGroupChecked"]>): void
      • Parameters

        Returns void

    • updateIndividualPrivacyOpen: function
      • updateIndividualPrivacyOpen(setContextValue: SetContextValueFunction, ...args: Parameters<BannerContextProps["updateIndividualPrivacyOpen"]>): void
      • Parameters

        • setContextValue: SetContextValueFunction
        • Rest ...args: Parameters<BannerContextProps["updateIndividualPrivacyOpen"]>

        Returns void

    • updateTcfFilterBy: function
      • updateTcfFilterBy(setContextValue: SetContextValueFunction, ...args: Parameters<BannerContextProps["updateTcfFilterBy"]>): void
      • Parameters

        Returns void

Generated using TypeDoc