Skip to main content

toast

Function toast 

Source
pub fn toast(kind: ToastKind, message: &str) -> (HeaderName, HeaderValue)
Expand description

An HX-Trigger header that makes app.js show a toast: ([toast(ToastKind::Ok, "Crawl queued")], html) from a handler.