Skip to content

raymond0901/mvcpager.core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

介绍(Description)

MvcPager for ASP.NET Core Mvc 2.0+

安装(Install)

  1. nuget:Install-Package HeyCoder.AspNetCore.MvcPager
  2. CLI:dotnet add package HeyCoder.AspNetCore.MvcPager
  3. https://www.nuget.org/packages/HeyCoder.AspNetCore.MvcPager

配置(Config)

{
  "HeyCoder.MvcPager": {
    "PageSize": "10",
    "PageButtonCount": "10",
    "PagerClassName": "pager",
    "CurrentPageClassName": "active",
    "PrePageButtonText": "<",
    "NextPageButtonText": ">",
    "PreGroupButtonText": "<<",
    "NextGroupButtonText": ">>",
    "FirstPageButtonText": "首页",
    "LastPageButtonText": "尾页",
    "ShowPagerStatus": "true",
    "ShowPreNextPageButton": "true",
    "ShowFirstLastPageButton": "false",
    "ShowGotoPanel": "true",
    "ShowDataCount": "true",
    "CurrentPageInCenter": "true",
    "DataCountTextFormat": "共{0}条数据",
    "PagerStatusTextFormat": "共{1}页"
  }
}

wiki:https://github.com/heycoder/mvcpager.core/wiki

使用示例(Demo)

  1. Theme:Default
<link href="//cdn.ken.io/plugin/mvcpager/theme/default-1.0.css" rel="stylesheet"/>

@Html.Pager(new {p = Guid.NewGuid().ToString()}, new PagerOption(){ PageIndex = Model.PageIndex })
  1. Theme:BootStrap
<link href="//cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" />
<link href="//cdn.ken.io/plugin/mvcpager/theme/bootstrap-1.0.css" rel="stylesheet" />


@Html.Pager(new {p = Guid.NewGuid().ToString()}, new PagerOption(){ PageIndex = Model.PageIndex })

项目成员(Members)

ken

About

ASP.NET Core MVC Pager for ASP.NET Core 2.0+

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%