Uses of Class
io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxResponse.Builder
Packages that use HtmxResponse.Builder
-
Uses of HtmxResponse.Builder in io.github.wimdeblauwe.htmx.spring.boot.mvc
Methods in io.github.wimdeblauwe.htmx.spring.boot.mvc that return HtmxResponse.BuilderModifier and TypeMethodDescriptionHtmxResponse.Builder.and(HtmxResponse otherResponse) Merges anotherHtmxResponseinto this builder.static HtmxResponse.BuilderHtmxResponse.builder()Return a builder to build aHtmxResponse.HtmxResponse.Builder.location(HtmxLocation location) Allows you to do a client-side redirect that does not do a full page reload.Allows you to do a client-side redirect that does not do a full page reload.HtmxResponse.Builder.preventHistoryUpdate()Prevents the browser history stack from being updated.Pushes a new URL into the history stack of the browser.Can be used to do a client-side redirect to a new locationHtmxResponse.Builder.refresh()If set to "true" the client side will do a full refresh of the pageHtmxResponse.Builder.replaceUrl(String url) Allows you to replace the most recent entry, i.e.Set a CSS selector that allows you to choose which part of the response is used to be swapped in.HtmxResponse.Builder.reswap(HtmxReswap reswap) Set a new swap to specify how the response will be swapped.Set a CSS selector that updates the target of the content update to a different element on the pageAdds an event that will be triggered once the response is received.Adds an event that will be triggered once the response is received.HtmxResponse.Builder.triggerAfterSettle(String eventName) Adds an event that will be triggered after the settling step.HtmxResponse.Builder.triggerAfterSettle(String eventName, Object eventDetail) Adds an event that will be triggered after the settling step.HtmxResponse.Builder.triggerAfterSwap(String eventName) Adds an event that will be triggered after the swap step.HtmxResponse.Builder.triggerAfterSwap(String eventName, Object eventDetail) Adds an event that will be triggered after the swap step.Append a view name to be resolved withViewResolverimplementations and used together with the implicit model.HtmxResponse.Builder.view(org.springframework.web.servlet.ModelAndView modelAndView) Append aModelAndViewinstance to use for rendering.HtmxResponse.Builder.view(org.springframework.web.servlet.View view) Append aViewinstance to use for rendering together with the implicit model.