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

Return new toast as a jquery object #13

Open
liamfl opened this issue Sep 4, 2019 · 2 comments
Open

Return new toast as a jquery object #13

liamfl opened this issue Sep 4, 2019 · 2 comments
Labels
Feature Request This issue is requesting a new feature

Comments

@liamfl
Copy link

liamfl commented Sep 4, 2019

Great plugin - it would be great to have the $.toast call returning the newly created object.

@Script47
Copy link
Owner

Thanks for the feedback @liamfl.

What benefits would this bring?

Just trying to gauge what it might be used for.

@Script47 Script47 added the Feature Request This issue is requesting a new feature label Oct 19, 2019
@rringrose
Copy link

If the toast call returned something we can hold onto, then we would be able to use that to update or dismiss the toast. For example, a toast which says "You have lost your connection" could be removed when the connection is restored. Right now, we can do it by assigning our own ID to the toast and then selecting by ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request This issue is requesting a new feature
Projects
None yet
Development

No branches or pull requests

3 participants