diff --git a/toastr/toastr-tests.ts b/toastr/toastr-tests.ts index 9a5ae6a19..adacb1934 100644 --- a/toastr/toastr-tests.ts +++ b/toastr/toastr-tests.ts @@ -48,7 +48,8 @@ function test_fromdemo() { debug: $('#debugInfo').prop('checked'), tapToDismiss: $('#tapToDismiss').prop('checked'), positionClass: $('#positionGroup input:radio:checked').val() || 'toast-top-right', - preventDuplicates: true + preventDuplicates: true, + progressBar: true } if ($fadeIn.val().length) { toastr.options.showDuration = +$fadeIn.val() diff --git a/toastr/toastr.d.ts b/toastr/toastr.d.ts index 8745a6157..2fcdc3840 100644 --- a/toastr/toastr.d.ts +++ b/toastr/toastr.d.ts @@ -119,6 +119,11 @@ interface ToastrOptions { */ preventDuplicates?: boolean; + /** + * Visually indicates how long before a toast expires. + */ + progressBar?: boolean; + /** * Function to execute on toast click */