You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the ts-ignore wouldn't be needed (app.component.ts line 36) and we would be able to add custom properties, too! Also, the origin functionality should work like this.
Cause of the default genneric assignment, the current behavior wouldn't be touched => following is still possible:
this.toastr.show(...)
The text was updated successfully, but these errors were encountered:
yl-endress
changed the title
Enhancement request: use generics in IndividualConfig
Enhancement request: use generics with IndividualConfig
Apr 7, 2021
Hey guys,
thank you for this awesome work!
Currently, we need a custom toast with custom event handlers... So far i found here an approach: https://medium.com/@chen.reuven/ngx-toastr-with-custom-buttons-a23b90ab5a08 (here the mentioned sample: https://stackblitz.com/edit/ngx-custom-toastr-dynamic-buttons?embed=1&file=app/app.component.ts).
To my question: What do you think about using the IndividualConfig as a generic?
In the stackblitz sample
the ts-ignore wouldn't be needed (app.component.ts line 36) and we would be able to add custom properties, too! Also, the origin functionality should work like this.
Cause of the default genneric assignment, the current behavior wouldn't be touched => following is still possible:
The text was updated successfully, but these errors were encountered: