Skip to content

Commit d155f3d

Browse files
committed
Update README
1 parent f993c50 commit d155f3d

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,15 @@ sweetAlert({
6969
A prompt modal where the user's input is logged:
7070

7171
```javascript
72-
sweetAlert({
73-
title: "Are you sure?",
74-
text: "You will not be able to recover this imaginary file!",
75-
type: "warning",
72+
sweerAlert({
73+
title: "An input!",
74+
text: 'Write something interesting:',
75+
type: 'input',
7676
showCancelButton: true,
77-
confirmButtonColor: "#DD6B55",
78-
confirmButtonText: "Yes, delete it!",
7977
closeOnConfirm: false,
80-
html: false
81-
}, function(){
82-
swal("Deleted!",
83-
"Your imaginary file has been deleted.",
84-
"success");
78+
animation: "slide-from-top"
79+
}, function(inputValue){
80+
console.log("You wrote", inputValue);
8581
});
8682
```
8783

@@ -111,7 +107,7 @@ If you want to contribute:
111107
```
112108
npm install
113109
```
114-
to install the dependencies and make Gulp automatically minify the SCSS and JS-files.
110+
to install the dependencies. Then run ```gulp``` while working to automatically minify the SCSS and JS-files.
115111

116112
- After you're done, make a pull request and wait for approval! :)
117113

0 commit comments

Comments
 (0)