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

Html notification #422

Open
Luvelnet opened this issue Oct 19, 2023 · 1 comment
Open

Html notification #422

Luvelnet opened this issue Oct 19, 2023 · 1 comment

Comments

@Luvelnet
Copy link

I am trying to show a notification with html, but there is no way.

This is my code:

const htmlContent = this.sanitizer.bypassSecurityTrustHtml('<div>Nuevo intento de inicio de sesión desde la web</div><div><button (click)="accept()">Aceptar</button><button (click)="reject()">Rechazar</button></div>');

this.notificationsService.html({
          html: htmlContent, 
          type: 'info',
          override:
          {
          timeOut: 0,  
          showProgressBar: false,
          pauseOnHover: false,
          clickToClose: false
}});

And this is my result:

image

Can anybody help me?

@Luvelnet Luvelnet changed the title Notificacion html Html notification Oct 19, 2023
@R-on
Copy link

R-on commented Dec 9, 2023

The value for html could also be an Angular TemplateRef. Is this a solution for your problem?

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

2 participants