File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,15 @@ function addProducts(quantity) {
20
20
addProducts ( 100 ) ;
21
21
22
22
export default class CustomPaginationTable extends React . Component {
23
+
24
+ renderShowsTotal ( start , to , total ) {
25
+ return (
26
+ < p style = { { color : 'blue' } } >
27
+ From { start } to { to } , totals is { total } (its a customize text)
28
+ </ p >
29
+ ) ;
30
+ }
31
+
23
32
render ( ) {
24
33
const options = {
25
34
page : 2 , // which page you want to show as default
@@ -31,7 +40,7 @@ export default class CustomPaginationTable extends React.Component {
31
40
nextPage : 'Next' , // Next page button text
32
41
firstPage : 'First' , // First page button text
33
42
lastPage : 'Last' , // Last page button text
34
- paginationShowsTotal : true
43
+ paginationShowsTotal : this . renderShowsTotal // Accept bool or function
35
44
} ;
36
45
37
46
return (
You can’t perform that action at this time.
0 commit comments