Skip to content

How to fire the preference panel

Francesco Mugnai edited this page Apr 1, 2022 · 2 revisions

Create a button with the attribute data-jgc-preferences at the desired location and...that's it! 😄

<button data-jgc-preferences>Open cookie preferences</button>

Remember that you can automatically open the panel when the page loads by adding the following key to the panel object:

panel: {
  open: true,
}