AngularJS-Toaster
AngularJS-Toaster copied to clipboard
Support for directives to be passed events when mouseover/out for timer occurs
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)
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.