Updated pager.
This commit is contained in:
@@ -118,8 +118,7 @@ else
|
||||
}
|
||||
</div> *@
|
||||
|
||||
<JPagination @bind-PageNumber="PageNumber" @bind-PageSize="pageSize" @bind-TotalItems="searchResults.TotalItems" />
|
||||
@* <MudPagination ShowFirstButton="true" ShowLastButton="true" Count="@((int)Math.Ceiling((decimal)searchResults.TotalItems / (decimal)100))" @bind-Selected="@PageNumber" Class="j-pager" /> *@
|
||||
<JPagination @bind-PageNumber="PageNumber" @bind-PageSize="PageSize" @bind-TotalItems="searchResults.TotalItems" />
|
||||
}
|
||||
|
||||
<style>
|
||||
@@ -177,6 +176,17 @@ else
|
||||
}
|
||||
|
||||
int pageSize = 100;
|
||||
|
||||
public int PageSize
|
||||
{
|
||||
get { return pageSize; }
|
||||
set
|
||||
{
|
||||
pageSize = value;
|
||||
_ = UpdateDataAsync(true);
|
||||
}
|
||||
}
|
||||
|
||||
SearchResult<CircleSearchItem>? searchResults;
|
||||
|
||||
protected override Task OnInitializedAsync()
|
||||
|
||||
Reference in New Issue
Block a user