Centering the pagination
Centering the pagination
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
I could solve this by selecting the bottomEnd and giving it an auto margin right, and setting its margin left to 0