From f86c668d94c8aa730afcbcc6885ed4b9832b262b Mon Sep 17 00:00:00 2001 From: carson Date: Sat, 6 Mar 2021 15:05:49 -0700 Subject: [PATCH] fix title --- www/attributes/hx-trigger.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/attributes/hx-trigger.md b/www/attributes/hx-trigger.md index 64a97df8..6b7d6e42 100644 --- a/www/attributes/hx-trigger.md +++ b/www/attributes/hx-trigger.md @@ -59,8 +59,10 @@ is seen again it will reset the delay. is seen again before the delay completes it is ignored, the element will trigger at the end of the delay. * `from:` - allows the event that triggers a request to come from another element in the document (e.g. listening to a key event on the body, to support hot keys) * `target:` - allows you to filter via a CSS selector on the target of the event. This can be useful when you want to listen for -triggers from elements that might not be in the DOM at the point of initialization, by listening on the body, but with a target filter for a -child +triggers from elements that might not be in the DOM at the point of initialization, by, for example, listening on the body, +but with a target filter for a child element +* `consume` - if this option is included the event will not trigger any other htmx requests on parents (or on elements + listening on parents) Here is an example of a search box that searches on `keyup`, but only if the search value has changed and the user hasn't typed anything new for 1 second: