i want to switch places of info and pagination

i want to switch places of info and pagination

nandrainandrai Posts: 26Questions: 0Answers: 0
edited July 2013 in DataTables 1.9
how can i switch the info to right and pagination to left? is it possible.

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    check out the sDom value to set the order/inclusion of different elements.

    you can also apply your own css styles to move those items to certain locations

    http://datatables.net/usage/options#sDom
  • nandrainandrai Posts: 26Questions: 0Answers: 0
    can you please give me the example fbas
  • nandrainandrai Posts: 26Questions: 0Answers: 0
    I tried like this

    $(document).ready(function() {
    $('#example').dataTable( {
    "sDom": 'lftpi'
    } );
    } );
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    You possibly also need to modify the CSS a little to get the floats correct.

    There is an example of using sDom here: http://datatables.net/release-datatables/examples/advanced_init/dom_multiple_elements.html

    Allan
This discussion has been closed.