Module Dream_html.Hx

htmx support https://htmx.org/reference/

val __ : _ string_attr

This attribute serves as the _ attribute, which is used by Hyperscript. Note that the value of this attribute is not escaped.

  • since 0.1.0.
val boost : bool to_attr
val confirm : _ string_attr
val delete : _ string_attr
val disable : attr
val disinherit : _ string_attr
val encoding_formdata : attr

Hardcoding of the hx-encoding attribute to multipart/form-data.

val ext : _ string_attr
val get : _ string_attr
val headers : _ string_attr
val history_false : attr

Hardcoding of the hx-history attribute to false.

val history_elt : attr
val include_ : _ string_attr
val indicator : _ string_attr

Note that the value of this attribute is not escaped as it may include a CSS selector.

val on : _ string_attr

Note that the value of this attribute is not escaped.

  • deprecated See https://htmx.org/attributes/hx-on/#hx-on-deprecated
val on_ : event:string -> _ string_attr

The hx-on:* set of attributes, where * represents DOM events: https://htmx.org/attributes/hx-on/.

Note that the value of this attribute is not escaped.

  • since 2.1.0.
val params : _ string_attr
val patch : _ string_attr
val post : _ string_attr
val preload : attr
val preserve : attr
val prompt : _ string_attr
val push_url : _ string_attr
val put : _ string_attr
val replace_url : _ string_attr
val request : _ string_attr
val select : _ string_attr

Note that the value of this attribute is not escaped as it may include a CSS selector.

val select_oob : _ string_attr

Note that the value of this attribute is not escaped as it may include a CSS selector.

val sse_connect : _ string_attr
val sse_swap : _ string_attr
val swap : _ string_attr

Note that the value of this attribute is not escaped as it may include a CSS selector.

val swap_oob : _ string_attr

Note that the value of this attribute is not escaped as it may include a CSS selector.

val sync : _ string_attr
val target : _ string_attr

Note that the value of this attribute is not escaped as it may include a CSS selector.

val trigger : _ string_attr

Note that the value of this attribute is not escaped.

val validate : attr
val vals : _ string_attr
val ws_connect : _ string_attr
val ws_send : attr