Replies: 3 comments 2 replies
-
What @dimmerz92 said, and there are also several ways to achieve this, e.g. with Alpine.js states. I hope to find some time in the next weeks/months to add some advanced examples to the showcase. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Not sure how to translate what they use in the htmx example to the templUI modal:
Is there something where I can wait for the result like you can do with the sweetalert example? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I would love to have a confirmation modal for the following use case.
Let's say I have a list of users and every row has an delete button to delete the user. Before executing a request directly, I would love a
Are you sure
modal for the user to confirm this action. Just like the one in the documentationBut I'm wondering how I can act upon the
Continue
button here? I need to do a request with the user id from the row that was clicked. Any ideas on how I can achieve this behaviour?I probably can save some state (the user id) with AlpineJS and when clicking on the confirm button it would fetch the selected user id and after that send the request? But I'm not sure how it all fits together
Beta Was this translation helpful? Give feedback.
All reactions