22 references to State
Microsoft.AspNetCore.Components.QuickGrid (22)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Paginator_razor.g.cs (10)
47if (State.TotalItemCount.HasValue) 99__builder.AddContent(9, State.TotalItemCount 188GetPageUrl(Math.Max(0, State.CurrentPageIndex - 1)) 228__builder.AddContent(45, State.CurrentPageIndex + 1 240__builder.AddContent(49, State.LastPageIndex + 1 254GetPageUrl(Math.Min(State.LastPageIndex ?? 0, State.CurrentPageIndex + 1)) 289GetPageUrl(State.LastPageIndex ?? 0) 390__builder.AddContent(96, State.CurrentPageIndex + 1 402__builder.AddContent(100, State.LastPageIndex + 1
Pagination\Paginator.razor.cs (12)
18private string QueryName => State.QueryName; 54private Task GoPreviousAsync() => GoToPageAsync(State.CurrentPageIndex - 1); 55private Task GoNextAsync() => GoToPageAsync(State.CurrentPageIndex + 1); 56private Task GoLastAsync() => GoToPageAsync(State.LastPageIndex.GetValueOrDefault(0)); 58private bool CanGoBack => State.CurrentPageIndex > 0; 59private bool CanGoForwards => State.CurrentPageIndex < State.LastPageIndex; 75_totalItemCountChanged.SubscribeOrMove(State.TotalItemCountChangedSubscribable); 79if (pageFromQuery != State.CurrentPageIndex) 81return State.SetCurrentPageIndexAsync(pageFromQuery); 93if (pageFromQuery != State.CurrentPageIndex) 95await State.SetCurrentPageIndexAsync(pageFromQuery);