From 102a3d1c0129aa49c3eebcc3d0f3145bca5ed739 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 21 Aug 2023 01:43:47 +0100 Subject: [PATCH] Added ShowPrompt --- bs4-test.html | 36 +++++++++++++++++++++++++++++ bsdialog4.js | 59 ++++++++++++++++++++++++++++++++++++++++++++++-- bsdialog4.min.js | 4 ++-- 3 files changed, 95 insertions(+), 4 deletions(-) diff --git a/bs4-test.html b/bs4-test.html index 0b6bf85..e12af9e 100644 --- a/bs4-test.html +++ b/bs4-test.html @@ -20,6 +20,7 @@
+
@@ -69,6 +70,30 @@
+
+
+ +

Example Five

+

Launch a prompt modal

+
+ let result = await BSDialog.ShowPrompt({
+     Title: "Prompt",
+     Message: "This is a prompt",
+     Size: "md",
+     Buttons: [
+         { Label: "Yes", Value: "Yes", Colour: "primary" },
+         { Label: "No", Value: "No", Colour: "secondary" },
+         { Label: "Cancel", Value: "Cancel", Colour: "secondary" }
+     ]
+ });
+
+ alert(result);
+
+

+ +
+
+