分页器

    基本用法:

    1. using Microsoft.AspNetCore.Mvc.RazorPages;
    2. using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Pagination;
    3. {
    4. public class PaginatorModel : PageModel
    5. public PagerModel PagerModel { get; set; }
    6. public void OnGet(int currentPage, string sort)
    7. {
    8. PagerModel = new PagerModel(100, 10, currentPage, 10, "/Components/Paginator", sort);
    9. }

    参阅查看示例.

    • totalCount
    • shownItemsCount
    • currentPage
    • pageSize
    • pageUrl
    • sort (默认值为null)

    show-info

    指定是否显示开始,结束和总记录的其他信息. 应为以下值之一:

    • true