Property | Type | Description | |
---|---|---|---|
pagerOptions | PagerOptions |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
AjaxOptions ( System.Web.Mvc.Ajax.AjaxOptions ajaxOptions ) : PagerOptionsBuilder |
Set the AjaxOptions.
|
public Action ( string action ) : PagerOptionsBuilder | ||
action | string | |
return | PagerOptionsBuilder |
public AddRouteValue ( string name, object value ) : PagerOptionsBuilder | ||
name | string | |
value | object | |
return | PagerOptionsBuilder |
public AlwaysAddFirstPageNumber ( ) : PagerOptionsBuilder | ||
return | PagerOptionsBuilder |
public DisplayFirstAndLastPage ( ) : PagerOptionsBuilder | ||
return | PagerOptionsBuilder |
public DisplayFirstPage ( ) : PagerOptionsBuilder | ||
return | PagerOptionsBuilder |
public DisplayLastPage ( ) : PagerOptionsBuilder | ||
return | PagerOptionsBuilder |
public DisplayTemplate ( string displayTemplate ) : PagerOptionsBuilder | ||
displayTemplate | string | |
return | PagerOptionsBuilder |
public HidePreviousAndNextPage ( ) : PagerOptionsBuilder | ||
return | PagerOptionsBuilder |
public MaxNrOfPages ( int maxNrOfPages ) : PagerOptionsBuilder | ||
maxNrOfPages | int | |
return | PagerOptionsBuilder |
public PageRouteValueKey ( string pageRouteValueKey ) : PagerOptionsBuilder | ||
pageRouteValueKey | string | |
return | PagerOptionsBuilder |
public PagerOptionsBuilder ( PagerOptions pagerOptions ) : System | ||
pagerOptions | PagerOptions | |
return | System |
public RouteValues ( RouteValueDictionary routeValues ) : PagerOptionsBuilder | ||
routeValues | RouteValueDictionary | |
return | PagerOptionsBuilder |
public RouteValues ( object routeValues ) : PagerOptionsBuilder | ||
routeValues | object | |
return | PagerOptionsBuilder |
public SetFirstPageText ( string firstPageText ) : PagerOptionsBuilder | ||
firstPageText | string | |
return | PagerOptionsBuilder |
public SetFirstPageTitle ( string firstPageTitle ) : PagerOptionsBuilder | ||
firstPageTitle | string | |
return | PagerOptionsBuilder |
public SetLastPageText ( string lastPageText ) : PagerOptionsBuilder | ||
lastPageText | string | |
return | PagerOptionsBuilder |
public SetLastPageTitle ( string lastPageTitle ) : PagerOptionsBuilder | ||
lastPageTitle | string | |
return | PagerOptionsBuilder |
public SetNextPageText ( string nextPageText ) : PagerOptionsBuilder | ||
nextPageText | string | |
return | PagerOptionsBuilder |
public SetNextPageTitle ( string nextPageTitle ) : PagerOptionsBuilder | ||
nextPageTitle | string | |
return | PagerOptionsBuilder |
public SetPreviousPageText ( string previousPageText ) : PagerOptionsBuilder | ||
previousPageText | string | |
return | PagerOptionsBuilder |
public SetPreviousPageTitle ( string previousPageTitle ) : PagerOptionsBuilder | ||
previousPageTitle | string | |
return | PagerOptionsBuilder |
public UseItemCountAsPageCount ( ) : PagerOptionsBuilder | ||
return | PagerOptionsBuilder |