From b5d108599e8c8b32342274e32faa05c676f4bf1a Mon Sep 17 00:00:00 2001 From: john Date: Wed, 23 Oct 2019 11:28:55 -0400 Subject: [PATCH] Clarify timeout units are milliseconds Clarify that timeout values are in milliseconds. Include more realistic examples of timeout values (3s rather than 30ms). --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 35ee9900..41b01a6c 100644 --- a/README.md +++ b/README.md @@ -191,10 +191,10 @@ toastr.options.preventDuplicates = true; ``` ### Timeouts -Control how toastr interacts with users by setting timeouts appropriately. +Control how toastr interacts with users by setting timeouts. Timeout values are specified in milliseconds. Zero means *do not timeout*. ```js -toastr.options.timeOut = 30; // How long the toast will display without user interaction -toastr.options.extendedTimeOut = 60; // How long the toast will display after a user hovers over it +toastr.options.timeOut = 3000; // How long the toast displays without user interaction (3 secs) +toastr.options.extendedTimeOut = 6000; // How long the toast displays after user hovers over it (6 secs) ``` ### Prevent from Auto Hiding