C# Class cloudscribe.Web.Pagination.PaginationLinkBuilder

Inheritance: IBuildPaginationLinks
显示文件 Open project: joeaudette/cloudscribe.Web.Pagination

Public Methods

Method Description
BuildPaginationLinks ( cloudscribe.Web.Pagination.PaginationSettings paginationSettings, string>.Func generateUrl, string firstPageText, string firstPageTitle, string previousPageText, string previousPageTitle, string nextPageText, string nextPageTitle, string lastPageText, string lastPageTitle, string spacerText = "..." ) : List

the problem with paging is when you have too many pages to fit in the pager based on PaginationSettings.MaxPagerItems you need a strategy to leave out links for some pages while still being possible to navigate to any page this class implements one such strategy (implemented by Martijn Boland) if you want to implement a different strategy you can plugin your own IBuildPaginationLinks implementation

Method Details

BuildPaginationLinks() public method

the problem with paging is when you have too many pages to fit in the pager based on PaginationSettings.MaxPagerItems you need a strategy to leave out links for some pages while still being possible to navigate to any page this class implements one such strategy (implemented by Martijn Boland) if you want to implement a different strategy you can plugin your own IBuildPaginationLinks implementation
public BuildPaginationLinks ( cloudscribe.Web.Pagination.PaginationSettings paginationSettings, string>.Func generateUrl, string firstPageText, string firstPageTitle, string previousPageText, string previousPageTitle, string nextPageText, string nextPageTitle, string lastPageText, string lastPageTitle, string spacerText = "..." ) : List
paginationSettings cloudscribe.Web.Pagination.PaginationSettings
generateUrl string>.Func
firstPageText string
firstPageTitle string
previousPageText string
previousPageTitle string
nextPageText string
nextPageTitle string
lastPageText string
lastPageTitle string
spacerText string
return List