Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.PagedList/Internal/BootstrapPagerHtmlGenerator.cs
/// <summary>
///     The core method to generate the HTML content.
/// </summary>
/// <param name="list">The pager list to generating the content.</param>
/// <param name="generateContainer">Whether a container element should be generated.</param>
/// <returns>The final <see cref="IHtmlContent" />.</returns>
The core method to generate the HTML content.
The core method to generate the HTML content .
protected static IHtmlContent GeneratePagerCore(PagerRenderingList list, bool generateContainer)
		{
			if (list == null)
				throw new ArgumentNullException(nameof(list));
			var content = GeneratePagerItems(list.Items);
			if (!generateContainer)
				return content;
			var container = GenerateContainer(list);
			container.InnerHtml.SetHtmlContent(content);
			return container;
		}
protected static IHtmlContent GeneratePagerCore ( PagerRenderingList list , bool generateContainer ) { if ( list == null ) throw new ArgumentNullException ( nameof ( list ) ) ; var content = GeneratePagerItems ( list . Items ) ; if ( ! generateContainer ) return content ; var container = GenerateContainer ( list ) ; container . InnerHtml . SetHtmlContent ( content ) ; return container ; }
The core method to generate the HTML content.
The core method to generate the HTML content .
// No container // With container
The final .
The final .
list
PagerRenderingList
The pager list to generating the content.
The pager list to generating the content .
generateContainer
bool
Whether a container element should be generated.
Whether a container element should be generated .