Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.PagedList/Internal/DefaultPagerGenerator.cs
/// <summary>
///     Generate the entire HTML content for a pager renderling list.
/// </summary>
/// <returns>The entire HTML content for the generated pager.</returns>
Generate the entire HTML content for a pager renderling list.
Generate the entire HTML content for a pager renderling list .
public IHtmlContent GeneratePager(PagerGenerationContext context)
		{
			if (context.TotalPage <= 1 && context.Options.HideOnSinglePage)
				return new HtmlString(string.Empty);
			var list = ListGenerator.GeneratePagerItems(context);
			if (context.Options.IsReversed)
				list = new PagerList(list.Items.Reverse());
			var renderingList = RenderingListGenerator.GenerateRenderingList(list, context);
			var html = HtmlGenerator.GeneratePager(renderingList, context);
			return html;
		}
public IHtmlContent GeneratePager ( PagerGenerationContext context ) { if ( context . TotalPage <= 1 && context . Options . HideOnSinglePage ) return new HtmlString ( string . Empty ) ; var list = ListGenerator . GeneratePagerItems ( context ) ; if ( context . Options . IsReversed ) list = new PagerList ( list . Items . Reverse ( ) ) ; var renderingList = RenderingListGenerator . GenerateRenderingList ( list , context ) ; var html = HtmlGenerator . GeneratePager ( renderingList , context ) ; return html ; }
Generate the entire HTML content for a pager renderling list.
Generate the entire HTML content for a pager renderling list .
// Hide Handling // Reverse handling
The entire HTML content for the generated pager.
The entire HTML content for the generated pager .
context
PagerGenerationContext