22 references to State
Microsoft.AspNetCore.Components.QuickGrid (22)
_generated\1\Paginator_razor.g.cs (10)
47
if (
State
.TotalItemCount.HasValue)
99
__builder.AddContent(9,
State
.TotalItemCount
178
GetPageUrl(Math.Max(0,
State
.CurrentPageIndex - 1))
216
__builder.AddContent(41,
State
.CurrentPageIndex + 1
228
__builder.AddContent(45,
State
.LastPageIndex + 1
242
GetPageUrl(Math.Min(
State
.LastPageIndex ?? 0,
State
.CurrentPageIndex + 1))
277
GetPageUrl(
State
.LastPageIndex ?? 0)
376
__builder.AddContent(90,
State
.CurrentPageIndex + 1
388
__builder.AddContent(94,
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);