Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

References

Re-exports HtmlGdprGuardError
Re-exports NoCheckboxError
Re-exports NoManagerDefinitionError
Re-exports NoNameError

Type Aliases

AddGuardsCallback: ((managerBuilder: GdprManagerBuilder) => void)

Type declaration

    • (managerBuilder: GdprManagerBuilder): void
    • Parameters

      • managerBuilder: GdprManagerBuilder

      Returns void

Functions

  • Initialize the gdpr-guard logic from the DOM or the provided {@link GdprSavior}

    throws

    {NoManagerDefinitionError} - If no manager definition can be found (either {@link gdprEl} is undefined or document.querySelector("[data-gdpr]") returned null)

    Parameters

    • gdprSavior: GdprSavior

      The savior to use to restore and save the {@link GdprManager} data

    • [options]: GdprHtmlManagerOptions = {}

      The setup's options

    Returns Promise<GdprManager>

    The restored GDPR manager