mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d5ece461d2
@ -159,7 +159,7 @@ than a single value.
|
||||
|
||||
### <a name="htmx:confirm"></a> Event - [`htmx:confirm`](#htmx:confirm)
|
||||
|
||||
This event is triggered immediate after a trigger occurs on an element. It allows you to cancel (or delay) issuing
|
||||
This event is triggered immediately after a trigger occurs on an element. It allows you to cancel (or delay) issuing
|
||||
the AJAX request. If you call `preventDefault()` on the event, it will not issue the given request. The `detail`
|
||||
object contains a function, `evt.detail.issueRequest()`, that can be used to issue the actual AJAX request at a
|
||||
later point. Combining these two features allows you to creat an asynchronous confirmation dialog.
|
||||
|
@ -64,6 +64,7 @@ The table below lists all other attributes available in htmx.
|
||||
| [`hx-request`](/attributes/hx-request) | configures various aspects of the request
|
||||
| [`hx-sse`](/extensions/server-sent-events) | has been moved to an extension. [Documentation for older versions](/attributes/hx-sse)
|
||||
| [`hx-sync`](/attributes/hx-sync) | control how requests made by different elements are synchronized
|
||||
| [`hx-validate`](/attributes/hx-validate) | force elements to validate themselves before a request
|
||||
| [`hx-vars`](/attributes/hx-vars) | adds values dynamically to the parameters to submit with the request (deprecated, please use [`hx-vals`](/attributes/hx-vals))
|
||||
| [`hx-ws`](/extensions/web-sockets) | has been moved to an extension. [Documentation for older versions](/attributes/hx-ws)
|
||||
|
||||
@ -140,6 +141,7 @@ The table below lists all other attributes available in htmx.
|
||||
| [`htmx:beforeSwap`](/events#htmx:beforeSwap) | triggered before a swap is done, allows you to configure the swap
|
||||
| [`htmx:beforeSend`](/events#htmx:beforeSend) | triggered just before an ajax request is sent
|
||||
| [`htmx:configRequest`](/events#htmx:configRequest) | triggered before the request, allows you to customize parameters, headers
|
||||
| [`htmx:confirm`](/events#htmx:confirm) | triggered after a trigger occurs on an element, allows you to cancel (or delay) issuing the AJAX request
|
||||
| [`htmx:historyCacheError`](/events#htmx:historyCacheError) | triggered on an error during cache writing
|
||||
| [`htmx:historyCacheMiss`](/events#htmx:historyCacheMiss) | triggered on a cache miss in the history subsystem
|
||||
| [`htmx:historyCacheMissError`](/events#htmx:historyCacheMissError) | triggered on a unsuccessful remote retrieval
|
||||
|
Loading…
x
Reference in New Issue
Block a user