mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +00:00
fix title
This commit is contained in:
parent
01d07e2675
commit
f86c668d94
@ -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:<CSS selector>` - 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:<CSS selector>` - 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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user