@if (TotalCount == 0)
{
No results
}
else
{
var from = (CurrentPage - 1) * PageSize + 1;
var to = Math.Min(CurrentPage * PageSize, TotalCount);
Showing @from-@to of @TotalCount results
}
Rows per page
@foreach (var p in GetVisiblePages())
{
if (p == -1)
{
...
}
else
{
}
}
@code {
[Parameter] public int CurrentPage { get; set; } = 1;
[Parameter] public int TotalPages { get; set; } = 1;
[Parameter] public int PageSize { get; set; } = 10;
[Parameter] public int TotalCount { get; set; }
[Parameter] public EventCallback