ngx-Cookie Consent
MoatazAhmed90 opened this issue · 0 comments
I'm using ngx cookie consent to ask user if he agrees with cookie storage and usage.
link : https://github.com/tinesoft/ngx-cookieconsent
So I try this module that is perfect BUT has no option for cookie personalization pop-up.
I'd like to have three buttons: Decline, Accept AND Personalize
I already developed the below and it shows the buttons but where i can implement DeclineCookies(), CustomizeCookies and AcceptCookies() ??
const cookieConfig: NgcCookieConsentConfig = {
cookie: {
domain: 'localhost' // or 'your.domain.com' // it is mandatory to set a domain, for cookies to work properly (see https://goo.gl/S2Hy2A)
},
palette: {
popup: {
background: '#000',
},
button: {
background: '#f1d600'
}
},
theme: 'edgeless',
type: 'opt-out',
layout: 'my-custom-layout',
layouts: {
"my-custom-layout": '{{buttons}}'
},
elements:{
buttons: <span id="cookieconsent:desc" class="cc-message">{{message}} <button (click)="delclineCookies()">Decline</button> <button (click)="customomizeCookies()">Customize Cookies</button> <button (click)="acceptCookies()">Accept</button> </span>
,
},
content:{
message: 'By using our site, you acknowledge that you have read and understood our Policy',
}
};