Merge pull request #221 from adamchainz/docs_cleanup

Some docs cleanup
This commit is contained in:
1cg 2020-11-02 18:40:25 -07:00 committed by GitHub
commit a719c86511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -470,7 +470,7 @@ When a user hits the back button, htmx will retrieve the old content from storag
### Specifying History Snapshot Element
By default, htmx will use the `body` to take and restore the history snapshop from. This is usually the right thing, but
By default, htmx will use the `body` to take and restore the history snapshot from. This is usually the right thing, but
if you want to use a narrower element for snapshotting you can use the [hx-history-elt](/attributes/hx-history-elt)
attribute to specify a different one.

View File

@ -3,10 +3,11 @@ layout: layout.njk
title: </> htmx - high power tools for html
---
## The `ajax-header` Extension
## The `event-header` Extension
This extension adds the `Triggering-Event` header to requests. The value
of the header is a JSON serialized version of the event that triggered the request.
This extension adds the `Triggering-Event` header to requests. The value of
the header is a JSON serialized version of the event that triggered the
request.
### Usage

View File

@ -71,8 +71,8 @@ title: </> htmx - Attributes
| `HX-Active-Element-Value` | the `value` of the active element if it exists
| `HX-Active-Element` | the `id` of the active element if it exists
| `HX-Current-URL` | the current URL of the browser
| `HX-Event-Target` | the `id` of the original event target
| `HX-Prompt` | the user response to an [ic-prompt](/attributes/hx-prompt)
| `HX-Event-Target` | the `id` of the original event target
| `HX-Prompt` | the user response to an [hx-prompt](/attributes/hx-prompt)
| `HX-Request` | always `true`
| `HX-Target` | the `id` of the target element if it exists
| `HX-Trigger-Name` | the `name` of the triggered element if it exists