Expand description
This crate provides a collection of HTMX attributes for fun-html
§Example
use fun_html::{elt::{script_empty, button, text}, attr::src};
use fun_htmx::{hx_get, hx_swap_outer_html};
let quick_start = [
script_empty([src("https://unpkg.com/htmx.org@2.0.3")]),
button(
[hx_get("/clicked"), hx_swap_outer_html()],
text("Click Me")
),
];Functions§
hx-boostattributehx-deleteattributehx-getattributehx-on*attributeshx-on:htmx:after-requestattributehx-on:htmx:before-requestattributehx-patchattributehx-postattributehx-push-urlattribute using a booleanhx-push-urlattribute using an URLhx-putattributehx-selectattributehx-swapattributehx-swap="afterbegin"hx-swap="afterend"hx-swap="beforebegin"hx-swap="beforeend"hx-swap="delete"hx-swap="innerHTML"hx-swap="none"- `hx-swap-oob=“true”
hx-swap-oobattributehx-swap="outerHTML"hx-swap="textContent"hx-targetattributehx-triggerattribute