toastr: Added progressBar

This commit is contained in:
Igor Fesenko
2015-02-24 18:05:29 +02:00
parent d259bacb11
commit 3ca66ac6fb
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -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()
+5
View File
@@ -119,6 +119,11 @@ interface ToastrOptions {
*/
preventDuplicates?: boolean;
/**
* Visually indicates how long before a toast expires.
*/
progressBar?: boolean;
/**
* Function to execute on toast click
*/