HxAttributeKeys

Attribute constants that are used with HTMX.

Report a problem

See also

Properties

Link copied to clipboard
const val Boost: String

Adds progressive enhancement for links and forms.

Link copied to clipboard
const val Confirm: String

Shows a confirm() dialog before issuing a request.

Link copied to clipboard
const val Delete: String

Issues a DELETE to the specified URL.

Link copied to clipboard
const val Disable: String

Disables htmx processing for the given node and any children nodes.

Link copied to clipboard
const val DisabledElt: String

Adds the disabled attribute to the specified elements while a request is in flight.

Link copied to clipboard
const val Disinherit: String

Controls and disables automatic attribute inheritance for child nodes.

Link copied to clipboard
const val Encoding: String

Changes the request encoding type.

Link copied to clipboard
const val Ext: String

Extensions to use for this element.

Link copied to clipboard
const val Get: String

Issues a GET to the specified URL.

Link copied to clipboard
const val Headers: String

Adds to the headers that will be submitted with the request.

Link copied to clipboard
const val History: String

Prevents sensitive data from being saved to the history cache.

Link copied to clipboard
const val HistoryElt: String

Specifies the element to snapshot and restore during history navigation.

Link copied to clipboard
const val Include: String

Includes additional data in requests.

Link copied to clipboard
const val Indicator: String

Specifies the element to put the htmx-request class on during the request.

Link copied to clipboard
const val Inherit: String

Controls and enables automatic attribute inheritance for child nodes if it has been disabled by default.

Link copied to clipboard
const val On: String

Handles events with inline scripts on elements.

Link copied to clipboard
const val Params: String

Filters the parameters that will be submitted with a request.

Link copied to clipboard
const val Patch: String

Issues a PATCH to the specified URL.

Link copied to clipboard
const val Post: String

Issues a POST to the specified URL.

Link copied to clipboard
const val Preserve: String

Specifies elements to keep unchanged between requests.

Link copied to clipboard
const val Prompt: String

Shows a prompt() before submitting a request.

Link copied to clipboard
const val PushUrl: String

Pushes a URL into the browser location bar to create history.

Link copied to clipboard
const val Put: String

Issues a PUT to the specified URL.

Link copied to clipboard
const val ReplaceUrl: String

Replaces the URL in the browser location bar.

Link copied to clipboard
const val Request: String

Configures various aspects of the request.

Link copied to clipboard
const val Select: String

Selects content to swap in from a response.

Link copied to clipboard
const val SelectOob: String

Selects content to swap in from a response, somewhere other than the target (out of band).

Link copied to clipboard
const val Swap: String

Controls how content will swap in (outerHTML, beforeend, afterend, …).

Link copied to clipboard
const val SwapOob: String

Marks element to swap in from a response (out of band).

Link copied to clipboard
const val Sync: String

Controls how requests made by different elements are synchronized.

Link copied to clipboard
const val Target: String

Specifies the target element to be swapped.

Link copied to clipboard
const val Trigger: String

Specifies the event that triggers the request.

Link copied to clipboard
const val Validate: String

Forces elements to validate themselves before a request.

Link copied to clipboard
const val Vals: String

Adds values to submit with the request (JSON format).

Link copied to clipboard
const val Vars: String

Adds values dynamically to the parameters to submit with the request (deprecated, please use hx-vals).