Skip to content

MvcCorePager is a free and open source pagination component for ASP.NET Core MVC application.

License

Notifications You must be signed in to change notification settings

Webdiyer/MvcCorePager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MvcCorePager | 简体中文

MvcCorePager is a free and open source pagination component for ASP.NET Core MVC application, it supports both tag helper and Html extension method syntax.

License NuGet

MvcCorePager

Html extension method syntax:

@Html.Pager(Model, new PagerOptions
{
    PageIndexParameterName = "id",
    TagName = "ul",
    CssClass = "pagination",
    CurrentPagerItemTemplate = "<li class=\"page-item active\"><a  class=\"page-link\" href=\"javascript:void(0);\">{0}</a></li>",
    DisabledPagerItemTemplate = "<li class=\"page-item disabled\"><a class=\"page-link\">{0}</a></li>",
    PagerItemTemplate = "<li class=\"page-item\">{0}</li>",
    PagerItemCssClass= "page-link",
    Id = "bootstrappager"
})

TagHelper syntax:

<mvcpager asp-model="@Model" page-index-parameter-name="id" tag-name="ul"
              class="pagination" 
              current-pager-item-template='<li class="page-item active"><a class="page-link" href="javascript:void(0);">{0}</a></li>'
              disabled-pager-item-template='<li class="page-item disabled"><a class="page-link">{0}</a></li>'
              pager-item-template='<li class="page-item">{0}</li>' pager-item-css-class="page-link" 
    id="bootstrappager2"></mvcpager>

About

MvcCorePager is a free and open source pagination component for ASP.NET Core MVC application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published