C# 클래스 MvcPaging.PagerOptionsBuilder

Pager options builder class. Enables a fluent interface for adding options to the pager.
파일 보기 프로젝트 열기: martijnboland/MvcPaging

보호된 프로퍼티들

프로퍼티 타입 설명
pagerOptions PagerOptions

공개 메소드들

메소드 설명
Action ( string action ) : PagerOptionsBuilder

Set the action name for the pager links. Note that we're always using the current controller.

AddRouteValue ( string name, object value ) : PagerOptionsBuilder

Add a custom route value parameter for the pager links.

AlwaysAddFirstPageNumber ( ) : PagerOptionsBuilder

Always add the page number to the generated link for the first page.

By default we don't add the page number for page 1 because it results in canonical links. Use this option to override this behaviour.

DisplayFirstAndLastPage ( ) : PagerOptionsBuilder

Displays both first and last navigation pages.

DisplayFirstPage ( ) : PagerOptionsBuilder

Displays the first navigation page but not the last.

DisplayLastPage ( ) : PagerOptionsBuilder

Displays the last navigation page but not the first.

DisplayTemplate ( string displayTemplate ) : PagerOptionsBuilder

Set the name of the DisplayTemplate view to use for rendering.

The view must have a model of IEnumerable<PaginationModel>

HidePreviousAndNextPage ( ) : PagerOptionsBuilder
MaxNrOfPages ( int maxNrOfPages ) : PagerOptionsBuilder

Set the maximum number of pages to show. The default is 10.

PageRouteValueKey ( string pageRouteValueKey ) : PagerOptionsBuilder

Set the page routeValue key for pagination links

PagerOptionsBuilder ( PagerOptions pagerOptions ) : System
RouteValues ( RouteValueDictionary routeValues ) : PagerOptionsBuilder

Set custom route value parameters for the pager links.

RouteValues ( object routeValues ) : PagerOptionsBuilder

Set custom route value parameters for the pager links.

SetFirstPageText ( string firstPageText ) : PagerOptionsBuilder

Set the text for first page navigation.

SetFirstPageTitle ( string firstPageTitle ) : PagerOptionsBuilder

Set the title for first page navigation.

SetLastPageText ( string lastPageText ) : PagerOptionsBuilder

Set the text for last page navigation.

SetLastPageTitle ( string lastPageTitle ) : PagerOptionsBuilder

Set the title for last page navigation.

SetNextPageText ( string nextPageText ) : PagerOptionsBuilder

Set the text for next page navigation.

SetNextPageTitle ( string nextPageTitle ) : PagerOptionsBuilder

Set the title for next page navigation.

SetPreviousPageText ( string previousPageText ) : PagerOptionsBuilder

Set the text for previous page navigation.

SetPreviousPageTitle ( string previousPageTitle ) : PagerOptionsBuilder

Set the title for previous page navigation.

UseItemCountAsPageCount ( ) : PagerOptionsBuilder

Indicate that the total item count means total page count. This option is for scenario's where certain backends don't return the number of total items, but the number of pages.

비공개 메소드들

메소드 설명
AjaxOptions ( System.Web.Mvc.Ajax.AjaxOptions ajaxOptions ) : PagerOptionsBuilder

Set the AjaxOptions.

메소드 상세

Action() 공개 메소드

Set the action name for the pager links. Note that we're always using the current controller.
public Action ( string action ) : PagerOptionsBuilder
action string
리턴 PagerOptionsBuilder

AddRouteValue() 공개 메소드

Add a custom route value parameter for the pager links.
public AddRouteValue ( string name, object value ) : PagerOptionsBuilder
name string
value object
리턴 PagerOptionsBuilder

AlwaysAddFirstPageNumber() 공개 메소드

Always add the page number to the generated link for the first page.
By default we don't add the page number for page 1 because it results in canonical links. Use this option to override this behaviour.
public AlwaysAddFirstPageNumber ( ) : PagerOptionsBuilder
리턴 PagerOptionsBuilder

DisplayFirstAndLastPage() 공개 메소드

Displays both first and last navigation pages.
public DisplayFirstAndLastPage ( ) : PagerOptionsBuilder
리턴 PagerOptionsBuilder

DisplayFirstPage() 공개 메소드

Displays the first navigation page but not the last.
public DisplayFirstPage ( ) : PagerOptionsBuilder
리턴 PagerOptionsBuilder

DisplayLastPage() 공개 메소드

Displays the last navigation page but not the first.
public DisplayLastPage ( ) : PagerOptionsBuilder
리턴 PagerOptionsBuilder

DisplayTemplate() 공개 메소드

Set the name of the DisplayTemplate view to use for rendering.
The view must have a model of IEnumerable<PaginationModel>
public DisplayTemplate ( string displayTemplate ) : PagerOptionsBuilder
displayTemplate string
리턴 PagerOptionsBuilder

HidePreviousAndNextPage() 공개 메소드

public HidePreviousAndNextPage ( ) : PagerOptionsBuilder
리턴 PagerOptionsBuilder

MaxNrOfPages() 공개 메소드

Set the maximum number of pages to show. The default is 10.
public MaxNrOfPages ( int maxNrOfPages ) : PagerOptionsBuilder
maxNrOfPages int
리턴 PagerOptionsBuilder

PageRouteValueKey() 공개 메소드

Set the page routeValue key for pagination links
public PageRouteValueKey ( string pageRouteValueKey ) : PagerOptionsBuilder
pageRouteValueKey string
리턴 PagerOptionsBuilder

PagerOptionsBuilder() 공개 메소드

public PagerOptionsBuilder ( PagerOptions pagerOptions ) : System
pagerOptions PagerOptions
리턴 System

RouteValues() 공개 메소드

Set custom route value parameters for the pager links.
public RouteValues ( RouteValueDictionary routeValues ) : PagerOptionsBuilder
routeValues RouteValueDictionary
리턴 PagerOptionsBuilder

RouteValues() 공개 메소드

Set custom route value parameters for the pager links.
public RouteValues ( object routeValues ) : PagerOptionsBuilder
routeValues object
리턴 PagerOptionsBuilder

SetFirstPageText() 공개 메소드

Set the text for first page navigation.
public SetFirstPageText ( string firstPageText ) : PagerOptionsBuilder
firstPageText string
리턴 PagerOptionsBuilder

SetFirstPageTitle() 공개 메소드

Set the title for first page navigation.
public SetFirstPageTitle ( string firstPageTitle ) : PagerOptionsBuilder
firstPageTitle string
리턴 PagerOptionsBuilder

SetLastPageText() 공개 메소드

Set the text for last page navigation.
public SetLastPageText ( string lastPageText ) : PagerOptionsBuilder
lastPageText string
리턴 PagerOptionsBuilder

SetLastPageTitle() 공개 메소드

Set the title for last page navigation.
public SetLastPageTitle ( string lastPageTitle ) : PagerOptionsBuilder
lastPageTitle string
리턴 PagerOptionsBuilder

SetNextPageText() 공개 메소드

Set the text for next page navigation.
public SetNextPageText ( string nextPageText ) : PagerOptionsBuilder
nextPageText string
리턴 PagerOptionsBuilder

SetNextPageTitle() 공개 메소드

Set the title for next page navigation.
public SetNextPageTitle ( string nextPageTitle ) : PagerOptionsBuilder
nextPageTitle string
리턴 PagerOptionsBuilder

SetPreviousPageText() 공개 메소드

Set the text for previous page navigation.
public SetPreviousPageText ( string previousPageText ) : PagerOptionsBuilder
previousPageText string
리턴 PagerOptionsBuilder

SetPreviousPageTitle() 공개 메소드

Set the title for previous page navigation.
public SetPreviousPageTitle ( string previousPageTitle ) : PagerOptionsBuilder
previousPageTitle string
리턴 PagerOptionsBuilder

UseItemCountAsPageCount() 공개 메소드

Indicate that the total item count means total page count. This option is for scenario's where certain backends don't return the number of total items, but the number of pages.
public UseItemCountAsPageCount ( ) : PagerOptionsBuilder
리턴 PagerOptionsBuilder

프로퍼티 상세

pagerOptions 보호되어 있는 프로퍼티

protected PagerOptions pagerOptions
리턴 PagerOptions