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: docs/response.md
+9
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ Available methods:
6
6
-[setReplaceUrl()](#setreplaceurl)
7
7
-[setReswap()](#setreswap)
8
8
-[setRetarget()](#setretarget)
9
+
-[setReselect()](#setreselect)
9
10
-[triggerClientEvent()](#triggerclientevent)
10
11
11
12
### setPushUrl()
@@ -40,6 +41,14 @@ Sets the value in `HX-Retarget` header. A CSS selector that updates the target o
40
41
$this->response->setRetarget('#another-div');
41
42
```
42
43
44
+
### setReselect()
45
+
46
+
Sets the value in `HX-Reselect` header. A CSS selector that allows you to choose which part of the response is used to be swapped in. Overrides an existing [hx-select](https://htmx.org/attributes/hx-select/) on the triggering element.
47
+
48
+
```php
49
+
$this->response->setReselect('#another-div');
50
+
```
51
+
43
52
### triggerClientEvent()
44
53
45
54
Allows you to set the headers: `HX-Trigger`, `HX-Trigger-After-Settle` or `HX-Trigger-After-Swap`.
0 commit comments