mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #3556 from johnnyreilly/master
toastr: Add preventDuplicates
This commit is contained in:
@@ -47,7 +47,8 @@ function test_fromdemo() {
|
||||
toastr.options = {
|
||||
debug: $('#debugInfo').prop('checked'),
|
||||
tapToDismiss: $('#tapToDismiss').prop('checked'),
|
||||
positionClass: $('#positionGroup input:radio:checked').val() || 'toast-top-right'
|
||||
positionClass: $('#positionGroup input:radio:checked').val() || 'toast-top-right',
|
||||
preventDuplicates: true
|
||||
}
|
||||
if ($fadeIn.val().length) {
|
||||
toastr.options.showDuration = +$fadeIn.val()
|
||||
|
||||
Vendored
+5
@@ -114,6 +114,11 @@ interface ToastrOptions {
|
||||
**/
|
||||
newestOnTop?: boolean;
|
||||
|
||||
/**
|
||||
* Rather than having identical toasts stack, set the preventDuplicates property to true. Duplicates are matched to the previous toast based on their message content.
|
||||
*/
|
||||
preventDuplicates?: boolean;
|
||||
|
||||
/**
|
||||
* Function to execute on toast click
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user