vue-gdpr
Installation
npm install @nextindex/vue-gdpr --save
Setup
import '@nextindex/vue-gdpr/vue-gdpr.css'
import { GDPRSidebar, GDPRContent } from '@nextindex/vue-gdpr'
Components
<GDPRSidebar />
<GDPRContent />
Props
GDPRContent
Prop | Type | Default Value | Description |
---|
lang | String | de | GDRP Language. Currently supported: de |
citations | Boolean | true | Show / Hide citations |
recitals | Boolean | true | Show / Hide recitals |
Prop | Type | Default Value | Description |
---|
lang | String | de | GDRP Language. Currently supported: de |
collapsible | Boolean | false | Enable/Disable Collapible sidebar items |
Slots
<GDPRSidebar>
<template v-slot:chapter="{ chapter }">
<h1>{{ chapter.title }}</h1>
</template>
</GDPRSidebar>
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Run your unit tests
npm run test:unit
Lints and fixes files
npm run lint
Customize configuration
See Configuration Reference.