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
TThe entity type displayed in the row.
TKeyThe 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
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
RowId
Gets the unique identifier for this row (e.g., "row_5f3e").
public string RowId { get; }
  Property Value
StringKey
Gets or sets the string representation of the row's key.
public string StringKey { get; set; }
  Property Value
TargetDisposition
Gets or sets the target disposition for out-of-band HTMX operations.
public OobTargetDisposition? TargetDisposition { get; set; }
  Property Value
TargetSelector
Gets or sets the HTMX target selector for out-of-band updates.
public string? TargetSelector { get; set; }