diff options
author | Vincent <vichenzo-thebaud@hotmail.com> | 2023-07-17 07:07:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-17 01:07:56 -0400 |
commit | fd912f807f378928fa2990f116d4191e3f28329f (patch) | |
tree | 1462e43077c7a5e7331883749c9017cad92eb2e3 | |
parent | 249a197d5789c752adc45d5db8ad1d3e919cf2d0 (diff) | |
download | htmx-fd912f807f378928fa2990f116d4191e3f28329f.tar.gz htmx-fd912f807f378928fa2990f116d4191e3f28329f.zip |
Make it clear that `from` with a selector gets all matching elements (#1582)
-rw-r--r-- | www/content/attributes/hx-trigger.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/www/content/attributes/hx-trigger.md b/www/content/attributes/hx-trigger.md index d87379aa..db64cc1e 100644 --- a/www/content/attributes/hx-trigger.md +++ b/www/content/attributes/hx-trigger.md @@ -55,6 +55,7 @@ is seen again it will reset the delay. * `throttle:<timing declaration>` - a throttle will occur before an event triggers a request. If the event is seen again before the delay completes it is ignored, the element will trigger at the end of the delay. * `from:<Extended 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) + * A standard CSS selector resolves to all elements matching that selector. Thus, `from:input` would listen on every input on the page. * The extended CSS selector here allows for the following non-standard CSS values: * `document` - listen for events on the document * `window` - listen for events on the window |