Skip to content

Commit

Permalink
[Documentation] Add missing htmx:sendAbort event (bigskysoftware#3024)
Browse files Browse the repository at this point in the history
Co-authored-by: scrhartley <[email protected]>
  • Loading branch information
2 people authored and geoffrey-eisenbarth committed Nov 27, 2024
1 parent 6af2b62 commit ae120f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions www/content/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,17 @@ This event is triggered when an HTTP error response occurs
* `detail.target` - the target of the request
* `detail.requestConfig` - the configuration of the AJAX request

### Event - `htmx:sendAbort` {#htmx:sendAbort}

This event is triggered when a request is aborted

##### Details

* `detail.xhr` - the `XMLHttpRequest`
* `detail.elt` - the element that triggered the request
* `detail.target` - the target of the request
* `detail.requestConfig` - the configuration of the AJAX request

### Event - `htmx:sendError` {#htmx:sendError}

This event is triggered when a network error prevents an HTTP request from occurring
Expand Down
1 change: 1 addition & 0 deletions www/content/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ All other attributes available in htmx.
| [`htmx:prompt`](@/events.md#htmx:prompt) | triggered after a prompt is shown
| [`htmx:pushedIntoHistory`](@/events.md#htmx:pushedIntoHistory) | triggered after an url is pushed into history
| [`htmx:responseError`](@/events.md#htmx:responseError) | triggered when an HTTP response error (non-`200` or `300` response code) occurs
| [`htmx:sendAbort`](@/events.md#htmx:sendAbort) | triggered when a request is aborted
| [`htmx:sendError`](@/events.md#htmx:sendError) | triggered when a network error prevents an HTTP request from happening
| [`htmx:sseError`](@/events.md#htmx:sseError) | triggered when an error occurs with a SSE source
| [`htmx:sseOpen`](/events#htmx:sseOpen) | triggered when a SSE source is opened
Expand Down

0 comments on commit ae120f7

Please sign in to comment.