You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* If set to true, the user can dismiss the modal by pressing the Escape key.
29
29
* Default: true
30
30
*/
31
-
allowEsxcapeKey?: boolean;
31
+
allowEscapeKey?: boolean;
32
32
33
33
/**
34
34
* A custom CSS class for the modal.
@@ -78,6 +78,12 @@ declare module SweetAlert {
78
78
*/
79
79
closeOnConfirm?: boolean;
80
80
81
+
/**
82
+
* Set to false if you want the modal to stay open even if the user presses the "Cancel"-button. This is especially useful if the function attached to the "Cancel"-button is another SweetAlert.
83
+
* Default: true
84
+
*/
85
+
closeOnCancel?: boolean;
86
+
81
87
/**
82
88
* Add a customized icon for the modal.Should contain a string with the path to the image.
83
89
* Default: null
@@ -104,7 +110,7 @@ declare module SweetAlert {
104
110
105
111
/**
106
112
* If set to false, the modal's animation will be disabled. Possible animations: "slide-from-top", "slide-from-bottom", "pop" (use true instead) and "none" (use false instead).
107
-
* Default: true, "pop"
113
+
* Default: true
108
114
*/
109
115
animation?: boolean|string;
110
116
@@ -113,6 +119,12 @@ declare module SweetAlert {
113
119
* Default: "text"
114
120
*/
115
121
inputType?: string;
122
+
123
+
/**
124
+
* When using the input-type, you can specify a placeholder to help the user.
0 commit comments