Fork me on GitHub

Pager - Usage

Markup

<pager [options] />

Options

Attribute Type Default Description
asp-for string n/a An expression containing the manadatory pager parameters.
asp-action string n/a The name of the action method.
asp-controller string n/a The name of the controller.
asp-route-* string n/a Any additional route parameters that may be required.
page int 1 Current page.
page-size int 10 Number of rows shown on the page.
total int 0 Total number of records in the enumeration.
links int 5 The maximum number of page links to be shown.
halign HorizontalAlignment Right Set the horizontal alignment.
show-status bool true Show the current page status message.
status-format string Showing {0} to {1} of {2} entries Pager status message.
show-sizes bool true Possible page sizes that can be changed by the user.
sizes-format string 10, 25, 50, 100 A comma-separated list of the available page sizes that can be selected.
class string pagination Set the class to be used by the pager. For example "pagination pagination-lg".
hide-first-last bool false Set the visibility of the first and last buttons.
hide-next-prev bool false Set the visibility of the next and previous buttons.
hide-page-skips bool false Set the visibility for all of the skip buttons.
first-icon string - Set the icon for the first button.
prev-icon string - Set the icon for the previous button.
next-icon string - Set the icon for the next button.
last-icon string - Set the icon for the last button.

Examples