Skip to content

Commit 7879d2e

Browse files
scrhartleyscrhartley
and
scrhartley
authored
[Documentation] Add missing htmx:sendAbort event (#3024)
Co-authored-by: scrhartley <[email protected]>
1 parent 001f9e0 commit 7879d2e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

www/content/events.md

+11
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,17 @@ This event is triggered when an HTTP error response occurs
412412
* `detail.target` - the target of the request
413413
* `detail.requestConfig` - the configuration of the AJAX request
414414

415+
### Event - `htmx:sendAbort` {#htmx:sendAbort}
416+
417+
This event is triggered when a request is aborted
418+
419+
##### Details
420+
421+
* `detail.xhr` - the `XMLHttpRequest`
422+
* `detail.elt` - the element that triggered the request
423+
* `detail.target` - the target of the request
424+
* `detail.requestConfig` - the configuration of the AJAX request
425+
415426
### Event - `htmx:sendError` {#htmx:sendError}
416427

417428
This event is triggered when a network error prevents an HTTP request from occurring

www/content/reference.md

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ All other attributes available in htmx.
160160
| [`htmx:prompt`](@/events.md#htmx:prompt) | triggered after a prompt is shown
161161
| [`htmx:pushedIntoHistory`](@/events.md#htmx:pushedIntoHistory) | triggered after an url is pushed into history
162162
| [`htmx:responseError`](@/events.md#htmx:responseError) | triggered when an HTTP response error (non-`200` or `300` response code) occurs
163+
| [`htmx:sendAbort`](@/events.md#htmx:sendAbort) | triggered when a request is aborted
163164
| [`htmx:sendError`](@/events.md#htmx:sendError) | triggered when a network error prevents an HTTP request from happening
164165
| [`htmx:sseError`](@/events.md#htmx:sseError) | triggered when an error occurs with a SSE source
165166
| [`htmx:sseOpen`](/events#htmx:sseOpen) | triggered when a SSE source is opened

0 commit comments

Comments
 (0)