Table of Contents

Enum OobTargetDisposition

Namespace
Htmx.Components.Models
Assembly
Htmx.Components.dll

Specifies how content should be positioned when performing HTMX out-of-band updates. These values correspond to HTMX's OOB swap strategies for DOM manipulation.

public enum OobTargetDisposition
Extension Methods

Fields

AfterBegin = 2

Inserts the content as the first child of the target element (hx-swap="afterbegin").

AfterEnd = 5

Inserts the content immediately after the target element (hx-swap="afterend").

BeforeBegin = 4

Inserts the content immediately before the target element (hx-swap="beforebegin").

BeforeEnd = 3

Inserts the content as the last child of the target element (hx-swap="beforeend").

Delete = 7

Removes the target element from the DOM (hx-swap="delete").

InnerHtml = 1

Replaces the content inside the target element (hx-swap="innerHTML").

None = 6

No out-of-band update should be performed.

OuterHtml = 0

Replaces the entire target element with the new content (hx-swap="outerHTML").