From af08345ef778623056ea1099290e73aa21974172 Mon Sep 17 00:00:00 2001
From: granttoday <46821216+granttoday@users.noreply.github.com>
Date: Fri, 27 Mar 2020 18:03:33 -0600
Subject: [PATCH] Add .then to input examples
Show how to get the result from the popup
---
docs-src/docs/index.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/docs-src/docs/index.md b/docs-src/docs/index.md
index b02dfa5c..cf200f99 100644
--- a/docs-src/docs/index.md
+++ b/docs-src/docs/index.md
@@ -207,6 +207,8 @@ layout: docs
```js
swal({
content: "input",
+ }).then(result=>{
+ swal("Your text:",result);
});
```
@@ -220,6 +222,8 @@ layout: docs
type: "password",
},
},
+ }).then(password=>{
+ swal("Your password:",password);
});
```