Composants → bpm.notificationCenter

bpm.notificationCenter

Liste de notifications (non lues / lues), marquage lecture et suppression.

StableFeedback⏱ 2 min

Notifications

1
  • Nouveau messageNon lu

    Vous avez reçu un message.

    9 avr.
  • Lues
  • Tâche terminée

    Export CSV réussi.

    9 avr.
Python
bpm.notificationCenter(notifications=items, onMarkRead=mark_read, onMarkAllRead=mark_all_read)
PropTypeDéfautRequisDescription
notificationsNotificationItem[]Ouiid, title, message, type, timestamp (ISO), read, actionLabel?, onAction?
onMarkRead(id: string) => voidOuiMarquer une notification comme lue.
onMarkAllRead() => voidNonTout marquer comme lu (bouton en-tête).
onDismiss(id: string) => voidNonSupprimer une notification lue (au survol).
maxVisiblenumber50NonNombre max affiché avant « Voir les anciennes ».
emptyMessagestringNonMessage si liste vide.
classNamestringNonClasses CSS.

Exemples

bpm.notificationCenter(notifications=notifs, onMarkRead=mark_read, onMarkAllRead=mark_all_read)
bpm.notificationCenter(notifications=notifs, onMarkRead=mark_read, onMarkAllRead=mark_all_read, onDismiss=dismiss)
bpm.notificationCenter(notifications=notifs, onMarkRead=mark_read, onMarkAllRead=mark_all_read, maxVisible=20)