Skip to content

Commit

Permalink
update docs for htmx.ajax to describe purpose of source field in context
Browse files Browse the repository at this point in the history
  • Loading branch information
anentropic committed Jul 7, 2024
1 parent 66edf3c commit 22893ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/content/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ or
* `verb` - 'GET', 'POST', etc.
* `path` - the URL path to make the AJAX
* `context` - a context object that contains any of the following
* `source` - the source element of the request
* `source` - the source element of the request, `hx-*` attrs which affect the request will be resolved against that element and its ancestors
* `event` - an event that "triggered" the request
* `handler` - a callback that will handle the response HTML
* `target` - the target to swap the response into
Expand Down

0 comments on commit 22893ab

Please sign in to comment.