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

Toast custom template close button #8647

Closed
Michael881188 opened this issue Mar 23, 2020 · 3 comments
Closed

Toast custom template close button #8647

Michael881188 opened this issue Mar 23, 2020 · 3 comments
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add

Comments

@Michael881188
Copy link

[x ] feature request

Current behavior
I am not able to create my own close button in custom toast because there is no close method i could use.

Expected behavior
Add method to message service that removes toast by id or something like that.

  • Angular version: 8

  • PrimeNG version: 8.1.1

  • Browser: all

@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Mar 24, 2020
@rg1220
Copy link

rg1220 commented Mar 25, 2021

I'm running into this issue now as well. We were going to use toasts for a long running operation to keep the user informed of the current status of the job. In theory multiple jobs could be performed so I can't clear all toasts before updating a job by creating a new toast.

@rg1220
Copy link

rg1220 commented Mar 30, 2021

Just opened up PR #10057 to fix this. It adds a function to the message service that allows you to remove a message/toast.

@mertsincan
Copy link
Member

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap?
Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants