From 3ca66ac6fbc3f01a425386b393baf31a2d2e4553 Mon Sep 17 00:00:00 2001 From: Igor Fesenko Date: Tue, 24 Feb 2015 18:05:29 +0200 Subject: [PATCH] toastr: Added progressBar --- toastr/toastr-tests.ts | 3 ++- toastr/toastr.d.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 */