Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82801

Centering the pagination

$
0
0

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!


Viewing all articles
Browse latest Browse all 82801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>