-
I had a slideout that I would like to close after successfully saving something using an HTMX library. Basically, I want to change:
I hope what I'm trying to do makes sense. I'm really stuck on the right approach here so would appreciate some help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
no, that won't work. Alpine.data is a factory to create data component in a script tag so you can use Is your library reloading the whole page? Because otherwise you won't get an |
Beta Was this translation helpful? Give feedback.
no, that won't work. Alpine.data is a factory to create data component in a script tag so you can use
x-data="slideout"
instead of writing everything in your html. It's probably easier if you use Alpine.store.Is your library reloading the whole page? Because otherwise you won't get an
alpine:init
event either and usually HTMX doesn't reload the page. Does your library have any hooks you can use?