Skip to content

Commit

Permalink
fix: Add payload property to the IndividualConfig Interface (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdebon committed Oct 25, 2021
1 parent 97e13cc commit 2b8fe58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/toastr/toastr-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ export interface IndividualConfig {
* default: true
*/
newestOnTop: boolean;

/**
* payload to pass to the toastComponent
* default: null
*/
payload: any;
}

export interface ToastrIconClasses {
Expand Down Expand Up @@ -230,6 +236,8 @@ export const DefaultNoComponentGlobalConfig: GlobalConfig = {
tapToDismiss: true,
onActivateTick: false,
progressAnimation: 'decreasing',

payload: null
};

export interface ToastToken {
Expand Down

0 comments on commit 2b8fe58

Please sign in to comment.