diff --git a/src/lib/toastr/toastr-config.ts b/src/lib/toastr/toastr-config.ts index 46333d94..9adeab3f 100644 --- a/src/lib/toastr/toastr-config.ts +++ b/src/lib/toastr/toastr-config.ts @@ -98,6 +98,12 @@ export interface IndividualConfig { * default: true */ newestOnTop: boolean; + + /** + * payload to pass to the toastComponent + * default: null + */ + payload: any; } export interface ToastrIconClasses { @@ -230,6 +236,8 @@ export const DefaultNoComponentGlobalConfig: GlobalConfig = { tapToDismiss: true, onActivateTick: false, progressAnimation: 'decreasing', + + payload: null }; export interface ToastToken {