C# Class X.PagedList.Mvc.HtmlHelper

Extension methods for generating paging controls that can operate on instances of IPagedList.
Mostra file Open project: kpi-ua/X.PagedList

Public Methods

Method Description
PagedListGoToPageForm ( this html, IPagedList list, string formAction ) : System.Web.HtmlString

Displays a configurable "Go To Page:" form for instances of PagedList.

PagedListGoToPageForm ( this html, IPagedList list, string formAction, GoToFormRenderOptions options ) : System.Web.HtmlString

Displays a configurable "Go To Page:" form for instances of PagedList.

PagedListGoToPageForm ( this html, IPagedList list, string formAction, string inputFieldName ) : System.Web.HtmlString

Displays a configurable "Go To Page:" form for instances of PagedList.

PagedListPager ( this html, IPagedList list, string>.Func generatePageUrl ) : System.Web.HtmlString

Displays a configurable paging control for instances of PagedList.

PagedListPager ( this html, IPagedList list, string>.Func generatePageUrl, PagedListRenderOptions options ) : System.Web.HtmlString

Displays a configurable paging control for instances of PagedList.

Private Methods

Method Description
AppendHtml ( TagBuilder tagBuilder, string innerHtml ) : void
Ellipses ( PagedListRenderOptions options ) : TagBuilder
First ( IPagedList list, string>.Func generatePageUrl, PagedListRenderOptions options ) : TagBuilder
ItemSliceAndTotalText ( IPagedList list, PagedListRenderOptions options ) : TagBuilder
Last ( IPagedList list, string>.Func generatePageUrl, PagedListRenderOptions options ) : TagBuilder
Next ( IPagedList list, string>.Func generatePageUrl, PagedListRenderOptions options ) : TagBuilder
Page ( int i, IPagedList list, string>.Func generatePageUrl, PagedListRenderOptions options ) : TagBuilder
PageCountAndLocationText ( IPagedList list, PagedListRenderOptions options ) : TagBuilder
Previous ( IPagedList list, string>.Func generatePageUrl, PagedListRenderOptions options ) : TagBuilder
SetInnerText ( TagBuilder tagBuilder, string innerText ) : void
TagBuilderToString ( TagBuilder tagBuilder ) : string
TagBuilderToString ( TagBuilder tagBuilder, TagRenderMode renderMode ) : string
WrapInListItem ( TagBuilder inner, PagedListRenderOptions options ) : TagBuilder
WrapInListItem ( string text ) : TagBuilder

Method Details

PagedListGoToPageForm() public static method

Displays a configurable "Go To Page:" form for instances of PagedList.
public static PagedListGoToPageForm ( this html, IPagedList list, string formAction ) : System.Web.HtmlString
html this This method is meant to hook off HtmlHelper as an extension method.
list IPagedList The PagedList to use as the data source.
formAction string The URL this form should submit the GET request to.
return System.Web.HtmlString

PagedListGoToPageForm() public static method

Displays a configurable "Go To Page:" form for instances of PagedList.
public static PagedListGoToPageForm ( this html, IPagedList list, string formAction, GoToFormRenderOptions options ) : System.Web.HtmlString
html this This method is meant to hook off HtmlHelper as an extension method.
list IPagedList The PagedList to use as the data source.
formAction string The URL this form should submit the GET request to.
options GoToFormRenderOptions Formatting options.
return System.Web.HtmlString

PagedListGoToPageForm() public static method

Displays a configurable "Go To Page:" form for instances of PagedList.
public static PagedListGoToPageForm ( this html, IPagedList list, string formAction, string inputFieldName ) : System.Web.HtmlString
html this This method is meant to hook off HtmlHelper as an extension method.
list IPagedList The PagedList to use as the data source.
formAction string The URL this form should submit the GET request to.
inputFieldName string The querystring key this form should submit the new page number as.
return System.Web.HtmlString

PagedListPager() public static method

Displays a configurable paging control for instances of PagedList.
public static PagedListPager ( this html, IPagedList list, string>.Func generatePageUrl ) : System.Web.HtmlString
html this This method is meant to hook off HtmlHelper as an extension method.
list IPagedList The PagedList to use as the data source.
generatePageUrl string>.Func A function that takes the page number of the desired page and returns a URL-string that will load that page.
return System.Web.HtmlString

PagedListPager() public static method

Displays a configurable paging control for instances of PagedList.
public static PagedListPager ( this html, IPagedList list, string>.Func generatePageUrl, PagedListRenderOptions options ) : System.Web.HtmlString
html this This method is meant to hook off HtmlHelper as an extension method.
list IPagedList The PagedList to use as the data source.
generatePageUrl string>.Func A function that takes the page number of the desired page and returns a URL-string that will load that page.
options PagedListRenderOptions Formatting options.
return System.Web.HtmlString