Thème
Superviseur — Frontend v0.14.0
Superviseur — Frontend / composables/useNotificationProvider / useNotificationProvider
Fonction: useNotificationProvider()
ts
function useNotificationProvider(): object;Défini dans: composables/useNotificationProvider.ts:11
Composable agissant en tant que fournisseur (provider) pour la gestion et l'affichage des notifications de l'application. Il fournit l'état des notifications et les fonctions pour les créer, modifier ou supprimer. Il enregistre également la fonction notify dans le contexte Vue via provide.
Retourne
object
Un objet contenant le tableau réactif des notifications et les fonctions de manipulation.
| Name | Type | Défini dans |
|---|---|---|
notifications | Ref<object[], | Notification[] | object[]> | composables/useNotificationProvider.ts:70 |
notify() | (message, type, options) => number | composables/useNotificationProvider.ts:71 |
updateNotification() | (id, updates) => void | composables/useNotificationProvider.ts:72 |
removeNotification() | (id) => void | composables/useNotificationProvider.ts:73 |
clearAll() | () => void | composables/useNotificationProvider.ts:74 |