File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -96,18 +96,14 @@ In case you want to escape HTML charaters in title and message
96
96
Optionally enable a close button
97
97
``` js
98
98
toastr .options .closeButton = true ;
99
+ ````
99
100
100
101
Optionally override the close button' s HTML.
102
+
101
103
```js
102
104
toastr.options.closeHtml = ' < button>< i class = " icon-off" >< / i>< / button> ' ;
103
105
```
104
106
105
- toastr.options.closeButton = true;
106
-
107
- Optionally override the close button' s HTML .
108
-
109
- toastr .options .closeHtml = ' <button><i class="icon-off"></i></button>' ;
110
-
111
107
You can also override the CSS/LESS for `#toast-container .toast-close-button`
112
108
113
109
Optionally override the hide animation when the close button is clicked (falls back to hide configuration).
@@ -162,9 +158,6 @@ Rather than having identical toasts stack, set the preventDuplicates property to
162
158
toastr.options.preventDuplicates = true;
163
159
```
164
160
165
- toastr .options .preventDuplicates = true ;
166
-
167
-
168
161
###Timeouts
169
162
Control how toastr interacts with users by setting timeouts appropriately. Timeouts can be disabled by setting them to 0.
170
163
```js
You can’t perform that action at this time.
0 commit comments