Skip to content

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

Open
@rbozan

Description

@rbozan

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.

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