Hi,
My question is how cam i Access the close Function in a custom Toast?
I can Only pass the renderfragment.
thank you
Solution:
The Toast pass the toast object as CascadeValue so you can get the toast object :
In your custom component:
Das [CascadingParamter] private BlazoredToaast Toast {get; set;}
Solution:
The Toast pass the toast object as CascadeValue so you can get the toast object :
In your custom component:
Das [CascadingParamter] private BlazoredToaast Toast {get; set;}
Hi, My question is how cam i Access the close Function in a custom Toast?
I can Only pass the renderfragment.
thank you
Solution: The Toast pass the toast object as CascadeValue so you can get the toast object : In your custom component: Das [CascadingParamter] private BlazoredToaast Toast {get; set;}
and call Toast.Close()