Landing
LandingCookiePreferences
The preferences dialog of the cookie banner, with a switch per category and the cookie table.
components/landing/LandingCookiePreferences.vue
Internal part
This is an internal part of LandingCookieBanner. You normally use it through LandingCookieBanner, but it is documented so you can customise or reuse it.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
categoriesrequired | (LandingCookieCategory & { title: string; required: boolean; })[] | — | The categories to filter or group by. |
initialrequired | Record<string, boolean> | — | The initial choices. |
policy | LandingAction | — | A LandingAction to the policy page. |
v-model | boolean | false | The selected value. |
Events
Name | Payload | Description |
|---|---|---|
@update:modelValue | [value: boolean] | Opened or closed. |
@save | [choices: Record<string, boolean>] | The visitor saved the choices. |