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
-
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
div
from the example above isdisplay:none;
and I'd like to toggle it todisplay:block
but not until theGET
request comes back. Like this:But, in a larger sense, the ability to hook arbitrary JS after an
hx-get
would be handy.Beta Was this translation helpful? Give feedback.
All reactions