22 references to State
Microsoft.AspNetCore.Components.QuickGrid (22)
_generated\1\Paginator_razor.g.cs (10)
47if (State.TotalItemCount.HasValue) 99__builder.AddContent(9, State.TotalItemCount 178GetPageUrl(Math.Max(0, State.CurrentPageIndex - 1)) 216__builder.AddContent(41, State.CurrentPageIndex + 1 228__builder.AddContent(45, State.LastPageIndex + 1 242GetPageUrl(Math.Min(State.LastPageIndex ?? 0, State.CurrentPageIndex + 1)) 277GetPageUrl(State.LastPageIndex ?? 0) 376__builder.AddContent(90, State.CurrentPageIndex + 1 388__builder.AddContent(94, State.LastPageIndex + 1
Pagination\Paginator.razor.cs (12)
18private string QueryName => State.QueryName; 49private Task GoPreviousAsync() => GoToPageAsync(State.CurrentPageIndex - 1); 50private Task GoNextAsync() => GoToPageAsync(State.CurrentPageIndex + 1); 51private Task GoLastAsync() => GoToPageAsync(State.LastPageIndex.GetValueOrDefault(0)); 53private bool CanGoBack => State.CurrentPageIndex > 0; 54private bool CanGoForwards => State.CurrentPageIndex < State.LastPageIndex; 70_totalItemCountChanged.SubscribeOrMove(State.TotalItemCountChangedSubscribable); 74if (pageFromQuery != State.CurrentPageIndex) 76return State.SetCurrentPageIndexAsync(pageFromQuery); 88if (pageFromQuery != State.CurrentPageIndex) 90await State.SetCurrentPageIndexAsync(pageFromQuery);