Replies: 3 comments 5 replies
-
Related question about arbitrary execution that isn't ajax requests |
Beta Was this translation helpful? Give feedback.
0 replies
-
This works, would have to do transition animations manually. <template
hx-trigger="propertyDeleted{{ .ID }} from:body"
hx-on::trigger="this.closest('#property{{ .ID }}').remove()"
> related: |
Beta Was this translation helpful? Give feedback.
2 replies
-
Can put an empty data URL in hx-get so that it doesn't need an actual request: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have multiple instances of this component on page. I can respond to
hx-trigger
event of "propertyDeleted123" by making a dummyhx-get
request to an endpoint that responds with nothing and swap it with nothing.But is there a way to not have to do the
hx-get
and just remove an element after event triggers?Almost like if the trigger could execute arbitrary calls, maybe something with hyperscipt, or an
hx-execute
that can hook into the trigger...Beta Was this translation helpful? Give feedback.
All reactions