You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
feat(pagination): add force-ellipses option and boundaryLinkNumbers
- Adds force-ellipsis option for adding ellipses to pagination
- Add boundary-link-numbers option for allowance of the first and last page numbers to always be shown
Closes#2924Closes#3064Closes#3565
Copy file name to clipboardExpand all lines: src/pagination/docs/readme.md
+8
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,10 @@ Settings can be provided as attributes in the `<uib-pagination>` or globally con
36
36
*`rotate`
37
37
_(Defaults: true)_ :
38
38
Whether to keep current page in the middle of the visible ones.
39
+
40
+
*`force-ellipses`
41
+
_(Defaults: false)_ :
42
+
Also displays ellipses when `rotate` is true and `max-size` is smaller than the number of pages.
39
43
40
44
*`direction-links`
41
45
_(Default: true)_ :
@@ -60,6 +64,10 @@ Settings can be provided as attributes in the `<uib-pagination>` or globally con
60
64
*`last-text`
61
65
_(Default: 'Last')_ :
62
66
Text for Last button.
67
+
68
+
*`boundary-link-numbers`
69
+
_(Default: false)_ :
70
+
Whether to always display the first and last page numbers. If `max-size` is smaller than the number of pages, then the first and last page numbers are still shown with ellipses in-between as necessary. NOTE: `max-size` refers to the center of the range. This option may add up to 2 more numbers on each side of the displayed range for the end value and what would be an ellipsis but is replaced by a number because it is sequential.
0 commit comments