Skip to content

Html notification #422

@Luvelnet

Description

@Luvelnet

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions