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 = 2Inserts the content as the first child of the target element (hx-swap="afterbegin").
AfterEnd = 5Inserts the content immediately after the target element (hx-swap="afterend").
BeforeBegin = 4Inserts the content immediately before the target element (hx-swap="beforebegin").
BeforeEnd = 3Inserts the content as the last child of the target element (hx-swap="beforeend").
Delete = 7Removes the target element from the DOM (hx-swap="delete").
InnerHtml = 1Replaces the content inside the target element (hx-swap="innerHTML").
None = 6No out-of-band update should be performed.
OuterHtml = 0Replaces the entire target element with the new content (hx-swap="outerHTML").