Package-level declarations

Types

Link copied to clipboard
object Css

Namespace for CSS selectors for HTMX.

Link copied to clipboard

An extended CSS selector for HTMX, like Css.window or Css.next.

Link copied to clipboard
@Serializable
data class HtmxConfig(val historyEnabled: Boolean? = null, val historyCacheSize: Int? = null, val refreshOnHistoryMiss: Boolean? = null, val defaultSwapStyle: HxSwap? = null, val defaultSwapDelay: Duration? = null, val defaultSettleDelay: Duration? = null, val includeIndicatorStyles: Boolean? = null, val indicatorClass: String? = null, val requestClass: String? = null, val addedClass: String? = null, val settlingClass: String? = null, val swappingClass: String? = null, val allowEval: Boolean? = null, val allowScriptTags: Boolean? = null, val inlineScriptNonce: String? = null, val attributesToSettle: Collection<String>? = null, val wsReconnectDelay: String? = null, val wsBinaryType: WsBinaryType? = null, val disableSelector: List<String>? = null, val withCredentials: Boolean? = null, val timeout: Duration? = null, val scrollBehavior: HxScrollBehaviour? = null, val defaultFocusScroll: Boolean? = null, val getCacheBusterParam: Boolean? = null, val globalViewTransitions: Boolean? = null, val methodsThatUseUrlParams: Collection<HttpVerb>? = null, val selfRequestsOnly: Boolean? = null, val ignoreTitle: Boolean? = null, val scrollIntoViewOnBoost: Boolean? = null, val triggerSpecsCache: String? = null, val allowNestedOobSwaps: Boolean? = null, val responseHandling: Collection<HtmxConfig.ResponseHandling>? = null)

Htmx has some configuration options that can be accessed either programmatically or declaratively.

Link copied to clipboard
@Serializable
data class HtmxRequest(val timeout: Duration? = null, val credentials: Boolean? = null, val noHeaders: Boolean? = null)

Options for Hx.request.

Link copied to clipboard
@Serializable
enum HttpVerb : Enum<HttpVerb>
Link copied to clipboard
object Hx

Contains all HTMX attributes.

Link copied to clipboard
object HxClass

Constants for all HTMX CSS classes.

Link copied to clipboard
object HxEvent

Constants for all HTMX events.

Link copied to clipboard
object HxHeader

Constants for all HTMX HTTP Request and Response headers.

Link copied to clipboard
Link copied to clipboard
@Serializable
enum HxSwap : Enum<HxSwap>

The possible values of the Hx.swap attribute.

Link copied to clipboard
enum HxSync : Enum<HxSync>

The possible strategy values of the Hx.sync attribute.

Link copied to clipboard
object HxTrigger

Values for Hx.trigger.

Link copied to clipboard

A standard CSS selector.

Link copied to clipboard
@Serializable
enum WsBinaryType : Enum<WsBinaryType>

Read more on WebSocket.binaryType.