How to place "Showing k of n" above the table?

How to place "Showing k of n" above the table?

boehmerboehmer Posts: 1Questions: 0Answers: 0
edited March 2012 in DataTables 1.8
Hello,

we had hired a designer for improving our design and HTML templates. He introduced datatables and it works pretty well.

However we now want to move the label telling "Showing k of n" above the table. Because it's a , not a traditional we cannot do that with CSS as far as I know. I looked through the code, did some research with Google but couldn't find an API call/setting or other way to change that. Unfortunately I could not even identify the part of the code that is actually responsible for placing the . I only found a function generating its HTML.

Any help appreciated.


With kind regards
Daniel Böhmer

Replies

  • grnbeaglegrnbeagle Posts: 1Questions: 0Answers: 0
    I did this by moving the info element in fnFooterCallback:

    [code]
    fnFooterCallback: function() {
    $('#references_info').prependTo($('#references_wrapper'));
    }
    [/code]

    Let me know if there's a better way.
  • allanallan Posts: 61,722Questions: 1Answers: 10,108 Site admin
    Using sDom : http://datatables.net/release-datatables/examples/advanced_init/dom_multiple_elements.html

    Allan
This discussion has been closed.