googlearchive / paper-toast

A lightweight feedback about an operation in a small popup at the base of the screen on mobile and at the lower left on desktop.
17 stars 8 forks source link

Fire event when toast is dimissed #12

Closed ebidel closed 9 years ago

ebidel commented 9 years ago

The use case I've run into is that I need to do cleanup work when the toast is dismissed. The user has the chance to "UNDO" the change while the toast is on screen

frankiefu commented 9 years ago

You can listen for core-overlay-close-completed event. I will add that to docs.

ebidel commented 9 years ago

Ah great!