flekschas / svelte-simple-modal

A simple, small, and content-agnostic modal for Svelte v3 and v4
https://svelte.dev/repl/b95ce66b0ef34064a34afc5c0249f313
MIT License
422 stars 30 forks source link

Is it possible to listen to events from Popup? #112

Open sadespresso opened 7 months ago

sadespresso commented 7 months ago

I am wondering if it's possible to listen to events popup component is emitting.

In plain svelte, we'd do something like this:

<Popup on:update={(e) => handleUpdate(e)} />

Is there any equivalent when using svelte-simple-modal?