You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: www/content/attributes/hx-headers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ If you wish for `hx-headers` to *evaluate* the values given, you can prefix the
17
17
<divhx-get="/example"hx-headers='js:{myVal: calculateValue()}'>Get Some HTML, Including a Dynamic Custom Header from Javascript in the Request</div>
18
18
```
19
19
20
-
When using evaluated code you can access the `event` object.
20
+
When using evaluated code you can access the `event` object.
21
21
22
22
```html
23
23
<divhx-get="/example"hx-headers='js:{"hx-trigger-event": event.type}'>Get some HTML, including a custom header indicating which event triggered the request.</div>
0 commit comments