PagerOptions - HendrickxJorn/Gobln.Pager.Mvc GitHub Wiki
#PagerOptions
PagerOptions allows you to customise the pager. If no PagerOptions is given to the html.Pager(), then a default PagerOptions object will be used.
##Parameters
| Name | Data type | Default value | Description |
|---|---|---|---|
| LabelFirstPageItem | string | "First" | Label of the first page item |
| LabelPreviousPageItem | string | "Previous" | Label of the previous page item |
| LabelNextPageItem | string | "Next" | Label of the next page item |
| LabelLastPageItem | string | "Last" | Label of the last page item |
| LabelJumpPageItem | string | "..." | Label of the jump page item |
| ItemShowOrder | ItemShow[] | new ItemShow[7] { ItemShow.PreviousItem, ItemShow.FirstItem, ItemShow.JumpPreviousItem, ItemShow.PagesItems, ItemShow.JumpNextItem, ItemShow.LastItem, ItemShow.NextItem } | Defines which page items will be displayed and in what order. |
| VisableItemsPerSide | int | 3 | The amount of visible pagenumbers on each side of the selected page. |
| HideIfNotPaged | bool | true | Hide the pager if there is no paging. |
| NavTagHtmlAttributes | object | NavTag Attributes | |
| DataIndexName | string | "pageIndex" | Data-attibute name, contains the page number. |
| Url | string | Url of the link. If empty, then use the default url. | |
| UrlDisable | bool | false | Change all url's to #. |
| UseIcons | bool | false | Use icons instead of text for the labels. |
| ActiveDisplay | bool | false | BootStrap only. Display/highlight the active page. |
| ActiveDisplayAsLink | bool | false | Use a span instead of hyperlink for the active page. |
| PagerSize | PagerSizeEnum | Normal | BootStrap only. Size of the pager. |
| PagerAlignment | PagerAlignmentEnum | Left | Alignment of the pager. |
| AlwaysShowFirstPageItem | bool | true | Always show the fist page item even when it's disabled. |
| AlwaysShowPreviousPageItem | bool | true | Always show the previous page item even when it's disabled. |
| AlwaysShowNextPageItem | bool | true | Always show the next page item even when it's disabled. |
| AlwaysShowLastPageItem | bool | true | Always show the last page item even when it's disabled. |
| AlwaysShowJumpPageItem | bool | true | Always show the jump page item even when it's disabled. |