Disabaling Action for a few seconds

How do I disable a button/action for the first few seconds of loading the page based on timestamp and want it to be unlocked after say 20 seconds. Is there any way to achieve this? I am aware that disabled() can be used. However, not sure how to set the disabled to false after x amount of time.
3 Replies
josef
josef16mo ago
I'd use alpine for that have the button disabled initially, and use alpine/js to countdown to 20seconds from now, then enable the button
CaptainJoker
CaptainJokerOP16mo ago
How do I include it in the code to acheive it?
Want results from more Discord servers?
Add your server