Cannot change pagination styling
Is there any way to change the styling of the pagination list? I would like to have it centered under the table, but it by default adds columns that push it to the right. Is this a change I can do with this package?
Really appreciate it, looks good so far!
Hi @bogannathan:
We're sorry for that so far react-bootstrap-table2 is not able to allow users to customize classNames or inline-style for pagination bar. For this part any PR is welcomed.
However, if it's bothering about the alignment, the following solution based on existing class does work but not recommended.
.react-bootstrap-table-pagination-list {
text-align: center;
transform: translateX(-50%);
}
.react-bootstrap-table-page-btns-ul {
float: none;
}
Thanks for letting me know! I appreciate it
let's close it firstly, we will overall have a customization for every components, thanks
@AllenFang I have tried this. it places the component in the center but the numbers are still aligned to the left
Just use this, this will also take care of more pages and move it correct for that situation. .react-bootstrap-table-pagination-list { display: flex; justify-content: end; }