diff --git a/bs4-test.html b/bs4-test.html index 5f1e02e..4f3b256 100644 --- a/bs4-test.html +++ b/bs4-test.html @@ -68,8 +68,8 @@ BSDialog.Show({
Example. Prompt Modal
-Launch a prompt modal and wait for a response
+Example. Prompt Modal (Buttons)
+Launch a prompt modal and wait for a button response
let response = await BSDialog.Prompt({
@@ -166,6 +166,94 @@ BSDialog.Show({
Example. Prompt Modal (Textbox)
+Launch a prompt modal and wait for a textbox response
+
+let response = await BSDialog.Prompt({
+ Type: "textbox",
+ Title: "Modal Title",
+ Message: "Are you sure want to wait for a response?",
+ Size: "md",
+ Label: "",
+ Placeholder: ""
+});
+
+alert(response);
+
+ Example. Prompt Modal (Textbox)
+Launch a prompt modal and wait for a textbox response
+
+let response = await BSDialog.Prompt({
+ Type: "textbox",
+ Title: "Modal Title",
+ Message: "Are you sure want to wait for a response?",
+ Size: "md",
+ Textbox: {
+ Label: "Textbox Label",
+ LabelSize: 4,
+ Placeholder: "Placeholder",
+ Value: "Default Value",
+ BoxSize: 8
+ }
+});
+
+alert(response);
+
+ Example. Simple Text Modal Deprecated
Launch an empty modal
@@ -200,11 +288,11 @@ BSDialog.UpdateFooter('abc123', ''); BSDialog.UpdateSize('abc123', 'lg');