File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -183,12 +183,19 @@ toastr.options.preventDuplicates = true;
183
183
```
184
184
185
185
### Timeouts
186
- Control how toastr interacts with users by setting timeouts appropriately. Timeouts can be disabled by setting them to 0.
186
+ Control how toastr interacts with users by setting timeouts appropriately.
187
187
```js
188
188
toastr.options.timeOut = 30; // How long the toast will display without user interaction
189
189
toastr.options.extendedTimeOut = 60; // How long the toast will display after a user hovers over it
190
190
```
191
191
192
+ ### Prevent from Auto Hiding
193
+ To prevent toastr from closing based on the timeouts, set the `timeOut` and `extendedTimeOut` options to `0`. The toastr will persist until selected.
194
+
195
+ ```js
196
+ toastr.options.timeOut = 0;
197
+ toastr.options.extendedTimeOut = 0;
198
+ ```
192
199
193
200
### Progress Bar
194
201
Visually indicate how long before a toast expires.
You can’t perform that action at this time.
0 commit comments