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.
BREAKING CHANGE: The 'first-text', 'previous-text', 'next-text' and 'last-text'
attributes are now binded to parent scope.
To migrate your code, surround the text of these attributes with quotes.
Before:
<pagination first-text="<<" ...></pagination>
After:
<pagination first-text="'<<'" ...></pagination>
Copy file name to clipboardexpand all lines: src/pagination/docs/readme.md
+48-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,51 @@
1
1
2
-
A lightweight pagination directive that is focused on ... providing pagination!
2
+
A lightweight pagination directive that is focused on ... providing pagination & will take care of visualising a pagination bar and enable / disable buttons correctly!
3
3
4
-
It will take care of visualising a pagination bar. Additionally it will make sure that the state (enabled / disabled) of the Previous / Next and First / Last buttons (if exist) is maintained correctly.
4
+
### Settings ###
5
+
6
+
Settings can be provided as attributes in the `<pagination>` or globally configured through the `paginationConfig`.
7
+
8
+
*`num-pages` <iclass="icon-eye-open"></i>
9
+
:
10
+
Number of total pages.
11
+
12
+
*`current-page` <iclass="icon-eye-open"></i>
13
+
:
14
+
Current page number.
15
+
16
+
*`max-size` <iclass="icon-eye-open"></i>
17
+
_(Defaults: null)_ :
18
+
Limit number for pagination size.
19
+
20
+
*`rotate`
21
+
_(Defaults: true)_ :
22
+
Whether to keep current page in the middle of the visible ones.
23
+
24
+
*`on-select-page (page)`
25
+
_(Default: null)_ :
26
+
An optional expression called when a page is selected having the page number as argument.
27
+
28
+
*`direction-links`
29
+
_(Default: true)_ :
30
+
Whether to display Previous / Next buttons.
31
+
32
+
*`previous-text`
33
+
_(Default: 'Previous')_ :
34
+
Text for Previous button.
35
+
36
+
*`next-text`
37
+
_(Default: 'Next')_ :
38
+
Text for Next button.
39
+
40
+
*`boundary-links`
41
+
_(Default: false)_ :
42
+
Whether to display First / Last buttons.
43
+
44
+
*`first-text`
45
+
_(Default: 'First')_ :
46
+
Text for First button.
47
+
48
+
*`last-text`
49
+
_(Default: 'Last')_ :
50
+
Text for Last button.
5
51
6
-
It also provides optional attribute max-size to limit the size of pagination bar & rotate attribute whether to keep current page in the middle of the visible ones.
0 commit comments