Possible to have links in Toast?
See original GitHub issueCurrently I have a toast that e.g. says:
ITEM DELETED SUCCESSFULLY
Now I want to give the user a chance to undo his action.
For this I am looking for a way to output something like:
ITEM DELETED SUCCESSFULLY
[Undo]
Where the [Undo]
could be a button or a link.
I’ve seen the example where you add formatting like <strong>
to the message, but I cannot deduce a way for me to add a Blazor link and bind its click
to a C# method of mine.
My question
Is there any way to add a link/button and bind it to a C# method I can provide?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Displaying multiple hyperlinks in a msgbx/toast...?
With the right type of panel, you can add multiple links. Can you post your code here. Also try using a different panel,...
Read more >Toasts · Bootstrap v5.0
While technically it's possible to add focusable/actionable controls (such as additional buttons or links) in your toast, you should avoid doing this for ......
Read more >Toast - How to add a link
To render a link in the Toast component, you can use its contentTemplate property. ... notify({ contentTemplate: function(e){ var a = document.
Read more >How to add a link to Toast
Hi, I was wondering if there was a way to include a hyperlink in a dx-toast component, and if so, how it would...
Read more >Create Toast Message in LWC and also embed link inside the ...
Learn to use Toast Message feature of LWC and also include links inside the toast message. Step by step guidance to write LWC...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I’ll tag this as a potential feature and we can go from there.
I’ve found a workaround that can be used to solve this.
@code
section:If you need to call an instance method or pass other data from the calling code, you could do this:
Then call it like this: