AngularJS-Toaster icon indicating copy to clipboard operation
AngularJS-Toaster copied to clipboard

Support for directives to be passed events when mouseover/out for timer occurs

Open jbhamilton opened this issue 8 years ago • 1 comments

I have built a progress bar that moves from full to empty as the duration of the timeout passes and displays in the bottom of the notification. However when the notification is moused over the timer is paused and when moused out the timer restarts. I would like to be able to be notified of these events to react appropriately (refilling the progress bar, not emptying it while still moused over, and restarting when moused out of.)

I know this isn't currently supported, does any one else have desire for this functionality? Was thinking of adding it...

(It might actually be cool to integrate this progress bar feature directly into the lib)

jbhamilton avatar Feb 07 '17 23:02 jbhamilton

It isn't necessarily a bad idea (and I'm sure several people would find it useful) but it may be easier to implement after restructuring to the directive BodyOutputType occurs to handle better eventing/databinding up and down. Also, keep in mind that a toast MAY sent to multiple containers, but each toast instance would need to be separately handled.

Stabzs avatar Feb 10 '17 19:02 Stabzs