Last active
August 27, 2024 09:33
-
-
Save trey/d04adbcc234800e90ff2ea3db3adcb46 to your computer and use it in GitHub Desktop.
Revisions
-
trey revised this gist
Dec 18, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,6 @@ https://github.com/alpinejs/alpine/issues/150#issuecomment-580452229 --> <form x-data action="/something" @submit.prevent="if (confirm('Are you sure?')) $el.submit()" method="post"> <button aria-label="Delete this">[some icon]</button> </form> -
trey revised this gist
Dec 18, 2021 . 2 changed files with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ <!-- https://alpinejs.dev/directives/on#prevent https://github.com/alpinejs/alpine/issues/150#issuecomment-580452229 --> <form x-data action="/something" @submit.prevent="if (confirm('Are you sure?')) { $el.submit() }" method="post"> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ <!-- https://htmx.org/attributes/hx-confirm/ https://htmx.org/attributes/hx-delete/ --> <form action="/something" hx-confirm="Are you sure?" method="post"> -
trey revised this gist
Dec 18, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,5 +3,5 @@ --> <form action="/something" hx-confirm="Are you sure?" method="post"> <button hx-delete="/something" aria-label="Delete this">[some icon]</button> </form> -
trey revised this gist
Dec 18, 2021 . 2 changed files with 11 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,7 @@ <!-- https://alpinejs.dev/directives/on#prevent --> <form x-data action="/something" @submit.prevent="if (confirm('Are you sure?')) { $el.submit() }" method="post"> <button aria-label="Delete this">[some icon]</button> </form> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ <!-- https://htmx.org/attributes/hx-confirm/ --> <form action="/something" hx-confirm="Are you sure?" method="post"> <button hx-delete="something" aria-label="Delete this">[some icon]</button> </form> -
trey created this gist
Dec 18, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ <form x-data action="/something" @submit.prevent="if (confirm('Are you sure?')) { $el.submit() }" method="post"> <button aria-label="Delete this">[some icon]</button> </form>