Add HX-Retarget header (#2)
This commit is contained in:
1 parent
5906f3b295
commit
9fcba06e75
3 files changed
+17
-2
No files matched your search
@@ -74,6 +74,10 @@ module Handlers =
|
||||
let withHxRefresh : bool -> HttpHandler =
|
||||
toLowerBool >> setHttpHeader "HX-Refresh"
|
||||
|
||||
/// Allows you to override the `hx-target` attribute
|
||||
let withHxRetarget : string -> HttpHandler =
|
||||
setHttpHeader "HX-Retarget"
|
||||
|
||||
/// Allows you to trigger a single client side event
|
||||
let withHxTrigger : string -> HttpHandler =
|
||||
setHttpHeader "HX-Trigger"
|
||||
|
||||
Reference in new issue
Block a user