Table of Contents

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

List<ITableColumnModel>

ModelHandler

Gets or sets the model handler responsible for data operations.

ModelHandler ModelHandler { get; set; }

Property Value

ModelHandler

PageCount

Gets or sets the total number of pages available for pagination.

int PageCount { get; set; }

Property Value

int

Rows

Gets or sets the collection of row contexts representing the table data.

List<ITableRowContext> Rows { get; set; }

Property Value

List<ITableRowContext>

State

Gets or sets the current state of the table including sorting, filtering, and pagination.

TableState State { get; set; }

Property Value

TableState

TypeId

Gets or sets the unique type identifier for the table model.

string TypeId { get; set; }

Property Value

string

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.