is it possible to use hx-trigger with JS API - htmx.ajax() ? #1508
Unanswered
BobSquarePants
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
There would need to be a way to call getTriggerSpecs() from context data, I guess. Could be added to an event object or a new parameter like "specs". :) |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Hi everyone,
is it possible to limit the rate (trough throttle or delay) like with hx-trigger but with the JS API htmx.ajax() ?
I've tried something like
so it's work, but without any restrictions on the throttling.
(I guess that the name for JS API for trigger is event ? I see no reference of trigger for the JS API )
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions