HxSwap

object HxSwap(source)

Constants for "hx-swap" values.

Report a problem

See also

Properties

Link copied to clipboard
const val afterBegin: String

Insert the response before the first child of the target element

Link copied to clipboard
const val afterEnd: String

Insert the response after the target element

Link copied to clipboard
const val beforeBegin: String

Insert the response before the target element

Link copied to clipboard
const val beforeEnd: String

Insert the response after the last child of the target element

Link copied to clipboard
const val delete: String

Deletes the target element regardless of the response

Link copied to clipboard
const val innerHtml: String

Replace the inner HTML of the target element

Link copied to clipboard
const val none: String

Does not append content from response (out of band items will still be processed)

Link copied to clipboard
const val outerHtml: String

Replace the entire target element with the response

Link copied to clipboard
const val textContent: String

Replace the text content of the target element, without parsing the response as HTML