Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GdprHtmlManagerOptions

Index

Properties

addGuardsAfterHook?: AddGuardsCallback

Add guards after the ones parsed from the DOM

param managerBuilder
default

() => {}

addGuardsBeforeHook?: AddGuardsCallback

Add guards before the ones parsed from the DOM

param managerBuilder
default

() => {}

autoCloseBanner?: boolean

Whether to auto close the banner (only if it has already been displayed to the user)

default

true

bindEventHandlersHook?: BindEventsCallback

A callback to attach event listeners to the {@link GdprManagerEventHub} before finalizing the setup

default

() => {}

gdprEl?: HTMLElement

The element that serves as the root of the GDPR manager's definition in the DOM

default

document.querySelector("[data-gdpr]")

onAllowAllErrorHook?: StoreErrorHandler

Handle failure of allowing all

onCancelErrorHook?: StoreErrorHandler

Handle failure of cancelling

onDeclineAllErrorHook?: StoreErrorHandler

Handle failure of declining all

onSaveErrorHook?: StoreErrorHandler

Handle failure of saving

Methods

  • onBannerClose(): void
  • Execute code when closing the banner

    Returns void

  • onBannerOpen(): void
  • Execute code when opening the banner

    Returns void