From b0e6964205851b14b0ddb0db9a808c52dbb32de6 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Mon, 7 Mar 2022 17:00:48 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20composant=20toastr=20succ=C3=A8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/pages/composants.ejs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/views/pages/composants.ejs b/views/pages/composants.ejs index 592662b..bcf5c68 100644 --- a/views/pages/composants.ejs +++ b/views/pages/composants.ejs @@ -278,6 +278,7 @@

Les notifications

+

Erreur

@@ -292,6 +293,26 @@ Afficher une notification </button> +<div id="toastr"> + <button class="delete" onclick="hideToastr()" aria-label="Masquer la notification"></button> + <span></span> +</div> + +

Succès

+ +
+ + +
+
+<button
+    type="button"
+    class="button is-primary"
+    onclick="showToastr('Ceci est une notification', true);"
+>
+    Afficher une notification
+</button>
+
 <div id="toastr">
     <button class="delete" onclick="hideToastr()" aria-label="Masquer la notification"></button>
     <span></span>