bpm.toast
Notification éphémère (success, error, info, warning). En app, utiliser ToastProvider + useToast() pour afficher.
Python
bpm.toast(message="Opération réussie.", type="success")| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
message | string | — | Oui | Texte de la notification. |
type | info | success | warning | error | info | Non | Style et couleur du toast. |
title | string | null | null | Non | Titre optionnel. |
pageName | string | null | null | Non | Nom de page pour contexte. |
pageIcon | string | null | null | Non | Icône HTML pour la page. |
onClose | () => void | — | Oui | Callback à la fermeture. |
Exemples
bpm.toast("Sauvegarde effectuée.", type="success")bpm.toast("Erreur réseau.", type="error")bpm.toast("Vérifiez les champs.", type="warning")