Add HX-Reselect; update for 1.9.3

This commit is contained in:
2023-07-15 17:54:01 -04:00
parent 7798314fb8
commit 98f53a5e53
8 changed files with 23 additions and 11 deletions

View File

@@ -94,6 +94,10 @@ module Handlers =
let withHxNoReplaceUrl : HttpHandler =
toLowerBool false |> withHxReplaceUrl
/// Override which portion of the response will be swapped into the target document
let withHxReselect : string -> HttpHandler =
setHttpHeader "HX-Reselect"
/// Override the `hx-swap` attribute from the initiating element
let withHxReswap : string -> HttpHandler =
setHttpHeader "HX-Reswap"