C# Класс X.PagedList.Mvc.HtmlHelper

Extension methods for generating paging controls that can operate on instances of IPagedList.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

PagedListGoToPageForm() публичный статический Метод

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.
Результат System.Web.HtmlString

PagedListGoToPageForm() публичный статический Метод

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.
Результат System.Web.HtmlString

PagedListGoToPageForm() публичный статический Метод

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.
Результат System.Web.HtmlString

PagedListPager() публичный статический Метод

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.
Результат System.Web.HtmlString

PagedListPager() публичный статический Метод

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.
Результат System.Web.HtmlString