@@ -17,6 +17,11 @@ const Pagination = React.createClass({
17
17
last : React . PropTypes . bool ,
18
18
prev : React . PropTypes . bool ,
19
19
next : React . PropTypes . bool ,
20
+ firstLabel : React . PropTypes . node ,
21
+ lastLabel : React . PropTypes . node ,
22
+ prevLabel : React . PropTypes . node ,
23
+ nextLabel : React . PropTypes . node ,
24
+ ellipsisLabel : React . PropTypes . node ,
20
25
onSelect : React . PropTypes . func ,
21
26
/**
22
27
* You can use a custom element for the buttons
@@ -34,6 +39,11 @@ const Pagination = React.createClass({
34
39
prev : false ,
35
40
next : false ,
36
41
ellipsis : true ,
42
+ firstLabel : '\u00ab' ,
43
+ lastLabel : '\u00bb' ,
44
+ prevLabel : '\u2039' ,
45
+ nextLabel : '\u203a' ,
46
+ ellipsisLabel : '...' ,
37
47
buttonComponentClass : SafeAnchor ,
38
48
bsClass : 'pagination'
39
49
} ;
@@ -89,7 +99,7 @@ const Pagination = React.createClass({
89
99
key = "ellipsis"
90
100
disabled
91
101
buttonComponentClass = { buttonComponentClass } >
92
- < span aria-label = "More" > ... </ span >
102
+ < span aria-label = "More" > { this . props . ellipsisLabel } </ span >
93
103
</ PaginationButton >
94
104
) ;
95
105
}
@@ -109,7 +119,7 @@ const Pagination = React.createClass({
109
119
disabled = { this . props . activePage === 1 }
110
120
onSelect = { this . props . onSelect }
111
121
buttonComponentClass = { this . props . buttonComponentClass } >
112
- < span aria-label = "Previous" > ‹ </ span >
122
+ < span aria-label = "Previous" > { this . props . prevLabel } </ span >
113
123
</ PaginationButton >
114
124
) ;
115
125
} ,
@@ -126,7 +136,7 @@ const Pagination = React.createClass({
126
136
disabled = { this . props . activePage >= this . props . items }
127
137
onSelect = { this . props . onSelect }
128
138
buttonComponentClass = { this . props . buttonComponentClass } >
129
- < span aria-label = "Next" > › </ span >
139
+ < span aria-label = "Next" > { this . props . nextLabel } </ span >
130
140
</ PaginationButton >
131
141
) ;
132
142
} ,
@@ -143,7 +153,7 @@ const Pagination = React.createClass({
143
153
disabled = { this . props . activePage === 1 }
144
154
onSelect = { this . props . onSelect }
145
155
buttonComponentClass = { this . props . buttonComponentClass } >
146
- < span aria-label = "First" > « </ span >
156
+ < span aria-label = "First" > { this . props . firstLabel } </ span >
147
157
</ PaginationButton >
148
158
) ;
149
159
} ,
@@ -160,7 +170,7 @@ const Pagination = React.createClass({
160
170
disabled = { this . props . activePage >= this . props . items }
161
171
onSelect = { this . props . onSelect }
162
172
buttonComponentClass = { this . props . buttonComponentClass } >
163
- < span aria-label = "Last" > » </ span >
173
+ < span aria-label = "Last" > { this . props . lastLabel } </ span >
164
174
</ PaginationButton >
165
175
) ;
166
176
} ,
0 commit comments