Interface ITableModel
- Namespace
 - Htmx.Components.Table.Models
 
- Assembly
 - Htmx.Components.dll
 
Represents a table model interface for use in non-generic contexts such as Razor views.
public interface ITableModel
  - Extension Methods
 
Properties
Columns
Gets or sets the collection of column models defining the table structure.
List<ITableColumnModel> Columns { get; set; }
  Property Value
ModelHandler
Gets or sets the model handler responsible for data operations.
ModelHandler ModelHandler { get; set; }
  Property Value
PageCount
Gets or sets the total number of pages available for pagination.
int PageCount { get; set; }
  Property Value
Rows
Gets or sets the collection of row contexts representing the table data.
List<ITableRowContext> Rows { get; set; }
  Property Value
State
Gets or sets the current state of the table including sorting, filtering, and pagination.
TableState State { get; set; }
  Property Value
TypeId
Gets or sets the unique type identifier for the table model.
string TypeId { get; set; }
  Property Value
Methods
GetActionsAsync()
Gets the available actions for the table.
Task<IEnumerable<ActionModel>> GetActionsAsync()
  Returns
- Task<IEnumerable<ActionModel>>
 A collection of action models for the table.