bpm.confirmModal
Modal de confirmation pour actions destructives (danger, warning, info).
Python
bpm.confirmModal(is_open=false, on_confirm=fn, on_cancel=fn, title="Confirmer la suppression", message="Cette action est irréversible.")| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
isOpen | boolean | — | Oui | Contrôle l'affichage de la modal. |
onConfirm | () => void | — | Oui | Callback au clic Confirmer. |
onCancel | () => void | — | Oui | Callback Annuler / Escape. |
title | string | — | Oui | Titre de la modal. |
message | string | — | Oui | Message principal. |
variant | danger | warning | info | danger | Non | Style du bouton confirmer. |
Exemples
bpm.confirmModal(is_open=True, on_confirm=fn, on_cancel=fn, title="Supprimer ?", message="Definitive.")