File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed
react-bootstrap-table2-paginator/src Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ const options = {
7474 // hidePageListOnlyOnePage: true, // Hide the pagination list when only one page
7575 firstPageText : 'First' ,
7676 prePageText : 'Back' ,
77- nextPageText : ' Next' ,
77+ nextPageText : < span > Next</ span > ,
7878 lastPageText : 'Last' ,
7979 nextPageTitle : 'First page' ,
8080 prePageTitle : 'Pre page' ,
Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ class PageButton extends Component {
3939
4040PageButton . propTypes = {
4141 onPageChange : PropTypes . func . isRequired ,
42- page : PropTypes . oneOfType ( [ PropTypes . number , PropTypes . string ] ) . isRequired ,
42+ page : PropTypes . oneOfType ( [
43+ PropTypes . node ,
44+ PropTypes . number ,
45+ PropTypes . string
46+ ] ) . isRequired ,
4347 active : PropTypes . bool . isRequired ,
4448 disabled : PropTypes . bool . isRequired ,
4549 className : PropTypes . string ,
Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ const PaginatonList = props => (
2727
2828PaginatonList . propTypes = {
2929 pages : PropTypes . arrayOf ( PropTypes . shape ( {
30- page : PropTypes . oneOfType ( [ PropTypes . number , PropTypes . string ] ) ,
30+ page : PropTypes . oneOfType ( [
31+ PropTypes . node ,
32+ PropTypes . number ,
33+ PropTypes . string
34+ ] ) ,
3135 active : PropTypes . bool ,
3236 disable : PropTypes . bool ,
3337 title : PropTypes . string
Original file line number Diff line number Diff line change @@ -100,10 +100,10 @@ Pagination.propTypes = {
100100 sizePerPageRenderer : PropTypes . func ,
101101 paginationTotalRenderer : PropTypes . func ,
102102 sizePerPageOptionRenderer : PropTypes . func ,
103- firstPageText : PropTypes . string ,
104- prePageText : PropTypes . string ,
105- nextPageText : PropTypes . string ,
106- lastPageText : PropTypes . string ,
103+ firstPageText : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . node ] ) ,
104+ prePageText : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . node ] ) ,
105+ nextPageText : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . node ] ) ,
106+ lastPageText : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . node ] ) ,
107107 nextPageTitle : PropTypes . string ,
108108 prePageTitle : PropTypes . string ,
109109 firstPageTitle : PropTypes . string ,
You can’t perform that action at this time.
0 commit comments