bpm.notificationCenter
Liste de notifications (non lues / lues), marquage lecture et suppression.
Python
bpm.notificationCenter(notifications=items, onMarkRead=mark_read, onMarkAllRead=mark_all_read)| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
notifications | NotificationItem[] | — | Oui | id, title, message, type, timestamp (ISO), read, actionLabel?, onAction? |
onMarkRead | (id: string) => void | — | Oui | Marquer une notification comme lue. |
onMarkAllRead | () => void | — | Non | Tout marquer comme lu (bouton en-tête). |
onDismiss | (id: string) => void | — | Non | Supprimer une notification lue (au survol). |
maxVisible | number | 50 | Non | Nombre max affiché avant « Voir les anciennes ». |
emptyMessage | string | — | Non | Message si liste vide. |
className | string | — | Non | Classes 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)