On the element itself, how can I specify arbitrary JS to execute after settle? #716
Unanswered
deanebarker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It is possible to specify JS to run after the settle, on the element itself? I know I can do this:
But can specify this on the element? Something like this:
In my specific case, I want to show the element after it's populated. The
divfrom the example above isdisplay:none;and I'd like to toggle it todisplay:blockbut not until theGETrequest comes back. Like this:But, in a larger sense, the ability to hook arbitrary JS after an
hx-getwould be handy.Beta Was this translation helpful? Give feedback.
All reactions