Table of Contents

Class HtmxViewInfo

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

Contains information needed to render a view in an HTMX context, including out-of-band targeting details. This class encapsulates the view name, model data, and HTMX-specific rendering instructions.

public class HtmxViewInfo
Inheritance
HtmxViewInfo
Inherited Members
Extension Methods

Properties

Model

Gets or sets the model object to pass to the view during rendering.

public object Model { get; set; }

Property Value

object

TargetDisposition

Gets or sets the out-of-band target disposition that determines how the rendered content should be handled by HTMX.

public OobTargetDisposition TargetDisposition { get; set; }

Property Value

OobTargetDisposition

TargetSelector

Gets or sets the CSS selector for targeting specific elements when using out-of-band updates. This property is only used when TargetDisposition is not None.

public string? TargetSelector { get; set; }

Property Value

string

ViewName

Gets or sets the name of the view to render.

public string ViewName { get; set; }

Property Value

string