Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-plugins/real-cookie-banner/src/public/ts/utils/getOptionsFromWindow"

Index

Functions

getOptionsFromWindow

  • getOptionsFromWindow(): { others: OtherOptions; restNamespace: string; restNonce: string; restQuery: any; restRoot: string; version: string }
  • Use this if you do not have the Mobx store available in your JavaScript asset. E. g. the banner.js does not rely on the mobx store and should access the localized options via window.realCookieBanner directly.

    Returns { others: OtherOptions; restNamespace: string; restNonce: string; restQuery: any; restRoot: string; version: string }

    • others: OtherOptions
    • restNamespace: string
    • restNonce: string
    • restQuery: any
    • restRoot: string
    • version: string

Generated using TypeDoc