Skip to content

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.

NameTypeDéfini dans
notificationsRef<object[], | Notification[] | object[]>composables/useNotificationProvider.ts:70
notify()(message, type, options) => numbercomposables/useNotificationProvider.ts:71
updateNotification()(id, updates) => voidcomposables/useNotificationProvider.ts:72
removeNotification()(id) => voidcomposables/useNotificationProvider.ts:73
clearAll()() => voidcomposables/useNotificationProvider.ts:74

Documentation Technique