alexcrack / alexcrack/angular-ui-notification

run an event when a notification starts

Aperta
#146 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
529
Fork
164
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

There is currently an `.onClose` method that can be setup to run when a notification closes, after looking up the docs and the code I've found no evidence for an opposite event that would fire when a notification is spawned.

My use case is that I want to play a sound when a notification is shown. So such an event would need to be defined at `.config` and would need to be run before any similar event would be run by a notification instance.

Is there a solution for this without poking inside the code and patching it ? if not I would probably fork the code and do it in the weekend.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.