Table of Contents

Class TableState

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

Represents the current state of a table including sorting, filtering, and pagination information.

public class TableState
Inheritance
TableState
Inherited Members
Extension Methods

Properties

Filters

Gets or sets the collection of column filters applied to the table.

public Dictionary<string, string> Filters { get; set; }

Property Value

Dictionary<string, string>

Page

Gets or sets the current page number (1-based).

public int Page { get; set; }

Property Value

int

PageSize

Gets or sets the number of rows to display per page.

public int PageSize { get; set; }

Property Value

int

RangeFilters

Gets or sets the collection of range filters for columns that support min/max filtering.

public Dictionary<string, (string Min, string Max)> RangeFilters { get; set; }

Property Value

Dictionary<string, (string Min, string Max)>

SortColumn

Gets or sets the name of the column currently being sorted.

public string? SortColumn { get; set; }

Property Value

string

SortDirection

Gets or sets the direction of the current sort (e.g., "asc" or "desc").

public string? SortDirection { get; set; }

Property Value

string