Class DataResult<TItem>
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.dll
Page returned by an IDataCollectionDataSource<TItem> in response to a DataRequest. Carries the materialised slice for the requested page plus the total row count after filtering (used by the host component to compute pagination — the slice itself only contains the visible page).
public sealed record DataResult<TItem>
Type Parameters
TItemRow item type.
- Inheritance
-
objectDataResult<TItem>
Constructors
DataResult(IReadOnlyList<TItem>, int)
Page returned by an IDataCollectionDataSource<TItem> in response to a DataRequest. Carries the materialised slice for the requested page plus the total row count after filtering (used by the host component to compute pagination — the slice itself only contains the visible page).
public DataResult(IReadOnlyList<TItem> Items, int TotalCount)
Parameters
ItemsIReadOnlyList<TItem>Materialised page of rows for the requested page index.
TotalCountintTotal number of rows matching the request's filters before pagination. Drives the pagination footer ("Page X of Y") and the live-region announcement.
Properties
Items
Materialised page of rows for the requested page index.
public IReadOnlyList<TItem> Items { get; init; }
Property Value
- IReadOnlyList<TItem>
TotalCount
Total number of rows matching the request's filters before pagination. Drives the pagination footer ("Page X of Y") and the live-region announcement.
public int TotalCount { get; init; }
Property Value
- int