Update hx-trigger throttle documentation (#1609)

This commit is contained in:
Oliver Djursing 2023-07-20 20:29:13 +02:00 committed by GitHub
parent 131c025143
commit c59fe799e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,8 +52,8 @@ Standard events can also have modifiers that change how they behave. The modifi
* `changed` - the event will only change if the value of the element has changed. Please pay attention `change` is the name of the event and `changed` is the name of the modifier. * `changed` - the event will only change if the value of the element has changed. Please pay attention `change` is the name of the event and `changed` is the name of the modifier.
* `delay:<timing declaration>` - a delay will occur before an event triggers a request. If the event * `delay:<timing declaration>` - a delay will occur before an event triggers a request. If the event
is seen again it will reset the delay. is seen again it will reset the delay.
* `throttle:<timing declaration>` - a throttle will occur before an event triggers a request. If the event * `throttle:<timing declaration>` - a throttle will occur after 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. 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) * `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)
* The extended CSS selector here allows for the following non-standard CSS values: * The extended CSS selector here allows for the following non-standard CSS values:
* `document` - listen for events on the document * `document` - listen for events on the document