Centering the pagination

Centering the pagination

DocaDoca Posts: 2Questions: 1Answers: 0
edited January 23 in Free community support

Hello everyone.
I'm migrating my DataTables plugin from 1.X to the latest 2.2.0 version, and thus transitioning from using DOM to Layout.
Previously, I used to wrap both the info and pagination sections in a div and adjust them using Bootstrap classes, but currently there doesn't seem to be any way to wrap elements in a div. Is there a way however to make the pagination centered while the info section is to the left?
I could achieve a similar effect using the following layout, but it seems like a hack more than a solution:

layout: {
                    topStart: ['buttons', 'pageLength'],
                    topEnd: 'search',
                    bottomStart: null,
                    bottom: ['info','paging', 'div'],
                    bottomEnd: null,
                }

Thank you!

Answers

  • DocaDoca Posts: 2Questions: 1Answers: 0

    I could solve this by selecting the bottomEnd and giving it an auto margin right, and setting its margin left to 0

Sign In or Register to comment.