Module response

Source
Expand description

htmx response headers.

Structs§

AfterSettle
allows you to trigger client-side events after the settle step
AfterSwap
allows you to trigger client-side events after the swap step
AjaxContext
ajax context for use with HxLocation.
HxLocation
allows you to do a client-side redirect that does not do a full page reload
HxPushUrl
pushes a new url into the history stack
HxRedirect
can be used to do a client-side redirect to a new location
HxRefresh
if set to “true” the client-side will do a full refresh of the page
HxReplaceUrl
replaces the current url in the history stack
HxReselect
a CSS selector that allows you to choose which part of the response is used to be swapped in. Overrides an existing hx-select on the triggering element
HxReswap
allows you to specify how the response will be swapped. See hx-swap for possible values
HxRetarget
a CSS selector that updates the target of the content update to a different element on the page

Enums§

HxModifyHistory
to be used with HxPushUrl or HxReplaceUrl.
HxTrigger
allows you to trigger client-side events

Statics§

HX_LOCATION
allows you to do a client-side redirect that does not do a full page reload
HX_PUSH_URL
pushes a new url into the history stack
HX_REDIRECT
can be used to do a client-side redirect to a new location
HX_REFRESH
if set to “true” the client-side will do a full refresh of the page
HX_REPLACE_URL
replaces the current url in the history stack
HX_RESELECT
a CSS selector that allows you to choose which part of the response is used to be swapped in. Overrides an existing hx-select on the triggering element
HX_RESWAP
allows you to specify how the response will be swapped. See hx-swap for possible values
HX_RETARGET
a CSS selector that updates the target of the content update to a different element on the page
HX_TRIGGER
allows you to trigger client-side events
HX_TRIGGER_AFTER_SETTLE
allows you to trigger client-side events after the settle step
HX_TRIGGER_AFTER_SWAP
allows you to trigger client-side events after the swap step

Traits§

HistoryModification
history modification headers.
TriggerAfter
trigger after headers.