HxSwap

@Serializable
enum HxSwap : Enum<HxSwap> (source)

The possible values of the Hx.swap attribute.

Entries

Link copied to clipboard
@SerialName(value = "innerHTML")
InnerHTML

Replace the inner html of the target element

Link copied to clipboard
@SerialName(value = "outerHTML")
OuterHTML

Replace the entire target element with the response

Link copied to clipboard
@SerialName(value = "textContent")
TextContent

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

Link copied to clipboard
@SerialName(value = "beforebegin")
BeforeBegin

Insert the response before the target element

Link copied to clipboard
@SerialName(value = "afterbegin")
AfterBegin

Insert the response before the first child of the target element

Link copied to clipboard
@SerialName(value = "beforeend")
BeforeEnd

Insert the response after the last child of the target element

Link copied to clipboard
@SerialName(value = "afterend")
AfterEnd

Insert the response after the target element

Link copied to clipboard
@SerialName(value = "delete")
Delete

Deletes the target element regardless of the response

Link copied to clipboard
@SerialName(value = "none")
None

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

Types

Link copied to clipboard
class Builder

Builder class for Hx.swap value.

Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
operator fun invoke(block: HxSwap.Builder.() -> Unit): String

Builds a new hx-swap value based on this style.

Link copied to clipboard
fun valueOf(value: String): HxSwap

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.