21 references to State
Microsoft.AspNetCore.Components.QuickGrid (21)
_generated\1\Paginator_razor.g.cs (9)
47
if (
State
.TotalItemCount.HasValue)
99
__builder.AddContent(9,
State
.TotalItemCount
169
CanGoBack ? GetPageUrl(
State
.CurrentPageIndex - 1) : null
198
__builder.AddContent(39,
State
.CurrentPageIndex + 1
210
__builder.AddContent(43,
State
.LastPageIndex + 1
224
CanGoForwards ? GetPageUrl(
State
.CurrentPageIndex + 1) : null
250
CanGoForwards ? GetPageUrl(
State
.LastPageIndex.GetValueOrDefault(0)) : null
340
__builder.AddContent(86,
State
.CurrentPageIndex + 1
352
__builder.AddContent(90,
State
.LastPageIndex + 1
Pagination\Paginator.razor.cs (12)
18
private string QueryName =>
State
.QueryName;
49
private Task GoPreviousAsync() => GoToPageAsync(
State
.CurrentPageIndex - 1);
50
private Task GoNextAsync() => GoToPageAsync(
State
.CurrentPageIndex + 1);
51
private Task GoLastAsync() => GoToPageAsync(
State
.LastPageIndex.GetValueOrDefault(0));
53
private bool CanGoBack =>
State
.CurrentPageIndex > 0;
54
private bool CanGoForwards =>
State
.CurrentPageIndex <
State
.LastPageIndex;
70
_totalItemCountChanged.SubscribeOrMove(
State
.TotalItemCountChangedSubscribable);
74
if (pageFromQuery !=
State
.CurrentPageIndex)
76
return
State
.SetCurrentPageIndexAsync(pageFromQuery);
88
if (pageFromQuery !=
State
.CurrentPageIndex)
90
await
State
.SetCurrentPageIndexAsync(pageFromQuery);