React-bootstrap-table2: Cannot change pagination styling

Created on 21 Mar 2018  路  4Comments  路  Source: react-bootstrap-table/react-bootstrap-table2

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!

Most helpful comment

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;
}

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saifulss picture saifulss  路  4Comments

josefheld picture josefheld  路  3Comments

sudravi picture sudravi  路  3Comments

primakashi picture primakashi  路  3Comments

thevangelist picture thevangelist  路  4Comments