Table of Contents

Class TableRowContext<T, TKey>

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

Provides context information for a specific table row with strongly-typed access to the row data.

public class TableRowContext<T, TKey> : ITableRowContext, IOobTargetable where T : class

Type Parameters

T

The entity type displayed in the row.

TKey

The key type for the entity.

Inheritance
TableRowContext<T, TKey>
Implements
Inherited Members
Extension Methods

Properties

IsEditing

Gets or sets a value indicating whether this row is currently in edit mode.

public bool IsEditing { get; set; }

Property Value

bool

Item

Gets or sets the data item associated with this row.

public required T Item { get; set; }

Property Value

T

Key

Gets or sets the strongly-typed key for this row's entity.

public TKey? Key { get; set; }

Property Value

TKey

ModelHandler

Gets or sets the model handler responsible for data operations.

public required ModelHandler<T, TKey> ModelHandler { get; set; }

Property Value

ModelHandler<T, TKey>

PageIndex

Gets or sets the row's index within the current page.

public int PageIndex { get; set; }

Property Value

int

RowId

Gets the unique identifier for this row (e.g., "row_5f3e").

public string RowId { get; }

Property Value

string

StringKey

Gets or sets the string representation of the row's key.

public string StringKey { get; set; }

Property Value

string

TargetDisposition

Gets or sets the target disposition for out-of-band HTMX operations.

public OobTargetDisposition? TargetDisposition { get; set; }

Property Value

OobTargetDisposition?

TargetSelector

Gets or sets the HTMX target selector for out-of-band updates.

public string? TargetSelector { get; set; }

Property Value

string