Display/Hide content with timeout #6762
MBNSoftware
started this conversation in
Show and tell
Replies: 1 comment 1 reply
|
This might be an interesting new component 🤔 Thanks for sharing! BTW, any chance you can share your social on LI? We wanted to tag you on the blog post recently but couldn't find you. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
here is a small component that shows and/or hide something after some delay, in seconds.
It can be used to show an alert on initial loading of a page and remove it automatically after some time. Or show a component or group of component after some delay.
Usage (test.razor) :
Usage (test.razor.cs) :
TimeoutBlock.razor :
TimeoutBlock.razor.cs :
It's really a small component but I use it quite often so I thought I may share it if it can be of any use for someone else.
I'm not very good at coming up with the right names, so please bear with me if it does not sound good...
Christophe
All reactions