Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngx-Cookie Consent #117

Open
MoatazAhmed90 opened this issue Feb 27, 2022 · 0 comments
Open

ngx-Cookie Consent #117

MoatazAhmed90 opened this issue Feb 27, 2022 · 0 comments

Comments

@MoatazAhmed90
Copy link

MoatazAhmed90 commented Feb 27, 2022

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',
}

};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant