Ends in:
2 DAYS
4 HRS
56 MIN
19 SEC
Ends in:
2 D
4 H
56 M
19 S

Paginator

Introduction

abp-paginator is the abp tag for pagination. Requires Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Pagination.PagerModel type of model.

Basic usage:

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

Model:

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

See the paginator demo page to see it in action.

Attributes

model

Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Pagination.PagerModel type of model can be initialized with the following data:

  • totalCount
  • shownItemsCount
  • currentPage
  • pageSize
  • pageUrl
  • sort (default null)

show-info

A value indicates if an extra information about start, end and total records will be displayed. Should be one of the following values:

  • false (default value)
  • true

Contributors


Last updated: July 31, 2024 Edit this page on GitHub

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

In this document
Community Talks

What’s New with .NET 9 & ABP 9?

21 Nov, 17:00
Online
Watch the Event
Mastering ABP Framework Book
Mastering ABP Framework

This book will help you gain a complete understanding of the framework and modern web application development techniques.

Learn More