Skip to content

lettucebo/X.PagedList.Mvc.Bootstrap4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X.PagedList.Mvc.Bootstrap4

Build Status Nuget

pager style for bootstrap 4

Styling the Pager Yourself

Current PagedList.Mvc Pager style is for Bootstrap 3, at Bootstrap 4, the pager style have a little change, this help easy transform to bootstrap 4 style

ResultDemo

Usage

First install nuget package:

Install-Package X.PagedList.Mvc.Bootstrap4

Then at cshtml pager:

@Html.PagedListPager((IPagedList)Model, page => Url.Action("Index", new { page }), Bootstrap4PagedListRenderOptions.ClassicPlusFirstAndLast)

Then it's done.

Custom

You can also custom your own setting base on Bootstrap4PagedListRenderOptions

Please see: HomeController.Cutsom

Type

  • Minimal
  • PageNumbersOnly
  • Classic
  • Default
  • ClassicPlusFirstAndLast