Table of Contents

Class TwDataTableItemsRequest

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

A request from a TwDataTable<TItem> for rows, passed to its ItemsProvider.

public sealed class TwDataTableItemsRequest
Inheritance
TwDataTableItemsRequest
Inherited Members

Constructors

TwDataTableItemsRequest()

public TwDataTableItemsRequest()

Properties

CancellationToken

Gets a token that is cancelled when the table no longer needs the rows, for example because the person sorted again before they arrived.

public CancellationToken CancellationToken { get; init; }

Property Value

CancellationToken

Count

Gets the most rows to return, or null for every row from StartIndex on, as an export asks.

public int? Count { get; init; }

Property Value

int?

Filters

Gets each filtered column's filter, keyed by Name. Empty when no column is filtered.

public IReadOnlyDictionary<string, ColumnFilter> Filters { get; init; }

Property Value

IReadOnlyDictionary<string, ColumnFilter>

SearchQuery

Gets the text in the search field, or null when nothing is searched for.

public string? SearchQuery { get; init; }

Property Value

string

SortColumn

Gets the Name of the column to sort by, or null for no sort.

public string? SortColumn { get; init; }

Property Value

string

SortDirection

Gets the direction to sort SortColumn in.

public SortDirection SortDirection { get; init; }

Property Value

SortDirection

StartIndex

Gets the zero based index of the first row to return, counted after the search and sort are applied.

public int StartIndex { get; init; }

Property Value

int