react-bootstrap-table/react-bootstrap-table2

Pagination: Different text/language

konrad111 opened this issue · 1 comments

hello everyone,

in pagination we can have our own text for the buttons "nextPageText" etc.
But what if i set "showTotal" to true? I will always get something like "Showing rows 1 to 10 of 16".
I would prefer "1 to 10 / 16" or something in a different language.
Is it possible to change?

Thanks in advance!

I just found a solution.
In paginationFactory:

paginationTotalRenderer: pageInfo,

And the code:

const pageInfo = (from, to, size) => ( <span className="react-bootstrap-table-pagination-total"> <font size="2"> <b> {from} bis {to} / {size} </b> </font> </span> );