@@ -17,6 +17,11 @@ const Pagination = React.createClass({
1717 last : React . PropTypes . bool ,
1818 prev : React . PropTypes . bool ,
1919 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 ,
2025 onSelect : React . PropTypes . func ,
2126 /**
2227 * You can use a custom element for the buttons
@@ -34,6 +39,11 @@ const Pagination = React.createClass({
3439 prev : false ,
3540 next : false ,
3641 ellipsis : true ,
42+ firstLabel : '\u00ab' ,
43+ lastLabel : '\u00bb' ,
44+ prevLabel : '\u2039' ,
45+ nextLabel : '\u203a' ,
46+ ellipsisLabel : '...' ,
3747 buttonComponentClass : SafeAnchor ,
3848 bsClass : 'pagination'
3949 } ;
@@ -89,7 +99,7 @@ const Pagination = React.createClass({
8999 key = "ellipsis"
90100 disabled
91101 buttonComponentClass = { buttonComponentClass } >
92- < span aria-label = "More" > ... </ span >
102+ < span aria-label = "More" > { this . props . ellipsisLabel } </ span >
93103 </ PaginationButton >
94104 ) ;
95105 }
@@ -109,7 +119,7 @@ const Pagination = React.createClass({
109119 disabled = { this . props . activePage === 1 }
110120 onSelect = { this . props . onSelect }
111121 buttonComponentClass = { this . props . buttonComponentClass } >
112- < span aria-label = "Previous" > ‹ </ span >
122+ < span aria-label = "Previous" > { this . props . prevLabel } </ span >
113123 </ PaginationButton >
114124 ) ;
115125 } ,
@@ -126,7 +136,7 @@ const Pagination = React.createClass({
126136 disabled = { this . props . activePage >= this . props . items }
127137 onSelect = { this . props . onSelect }
128138 buttonComponentClass = { this . props . buttonComponentClass } >
129- < span aria-label = "Next" > › </ span >
139+ < span aria-label = "Next" > { this . props . nextLabel } </ span >
130140 </ PaginationButton >
131141 ) ;
132142 } ,
@@ -143,7 +153,7 @@ const Pagination = React.createClass({
143153 disabled = { this . props . activePage === 1 }
144154 onSelect = { this . props . onSelect }
145155 buttonComponentClass = { this . props . buttonComponentClass } >
146- < span aria-label = "First" > « </ span >
156+ < span aria-label = "First" > { this . props . firstLabel } </ span >
147157 </ PaginationButton >
148158 ) ;
149159 } ,
@@ -160,7 +170,7 @@ const Pagination = React.createClass({
160170 disabled = { this . props . activePage >= this . props . items }
161171 onSelect = { this . props . onSelect }
162172 buttonComponentClass = { this . props . buttonComponentClass } >
163- < span aria-label = "Last" > » </ span >
173+ < span aria-label = "Last" > { this . props . lastLabel } </ span >
164174 </ PaginationButton >
165175 ) ;
166176 } ,
0 commit comments