版本
语言

分页器

介绍

abp-paginator 是分页器的abp标签. 需要 Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Pagination.PagerModel 类型的模型.

基本用法:

<abp-paginator model="Model.PagerModel" show-info="true"></abp-paginator>

模型:

using Microsoft.AspNetCore.Mvc.RazorPages;
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Pagination;

namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo.Pages.Components
{
    public class PaginatorModel : PageModel
    {
        public PagerModel PagerModel { get; set; }

        public void OnGet(int currentPage, string sort)
        {
            PagerModel = new PagerModel(100, 10, currentPage, 10, "/Components/Paginator", sort);
        }
    }
}

Demo

参阅分页器demo页面查看示例.

Attributes

model

Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Pagination.PagerModel 类型模型可以用以下数据初始化:

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

show-info

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

  • false (默认值)
  • true
本页对您有帮助吗?
请进行选择。
感谢您的宝贵意见!

请注意,虽然我们无法回复反馈意见,但我们的团队会根据您的意见改进体验。

在本文档中
Mastering ABP Framework Book
掌握 ABP 框架

本书将帮助你全面了解框架和现代Web应用程序开发技术。