Created
June 29, 2011 04:35
-
-
Save troygoode/1053159 to your computer and use it in GitHub Desktop.
PagedList Custom RenderOptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyRenderOptions : PagedList.Mvc.PagedListRenderOptions{ | |
public MyRenderOptions() : base(){ | |
DisplayLinkToFirstPage = false; | |
DisplayLinkToLastPage = false; | |
DisplayLinkToIndividualPages = false; | |
LinkToPreviousPageFormat = "< Go Back"; | |
LinkToNextPageFormat = "Go Forward >"; | |
} | |
} | |
//use like so: | |
@Html.PagedListPager(myPagedList, page => Url.Action("Index", new { page = page }), new MyRenderOptions()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment