21 references to State
Microsoft.AspNetCore.Components.QuickGrid (21)
_generated\1\Paginator_razor.g.cs (9)
47if (State.TotalItemCount.HasValue) 99__builder.AddContent(9, State.TotalItemCount 169CanGoBack ? GetPageUrl(State.CurrentPageIndex - 1) : null 198__builder.AddContent(39, State.CurrentPageIndex + 1 210__builder.AddContent(43, State.LastPageIndex + 1 224CanGoForwards ? GetPageUrl(State.CurrentPageIndex + 1) : null 250CanGoForwards ? 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)
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);