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

An event like onpop which gets called when a toast is shown #92

Open
rbozan opened this issue Jan 2, 2024 · 0 comments
Open

An event like onpop which gets called when a toast is shown #92

rbozan opened this issue Jan 2, 2024 · 0 comments

Comments

@rbozan
Copy link

rbozan commented Jan 2, 2024

I'd like to play an audio fragment if a new toast gets shown, and while I could add a sound effect before I call toast.push or make a wrapper function, can't we have an event in <SvelteToast> like <SvelteToast on:create which gets called when a new toast is pushed? It makes it a bit cleaner and is trivial to add.

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