How to put Showing 1 to 5 of 5 entries to the top

How to put Showing 1 to 5 of 5 entries to the top

lontichimlontichim Posts: 3Questions: 1Answers: 0
edited August 2017 in Free community support

Hello Hi everyone, i'm new
I'm having problems with this, i have 3 buttons above and now i want to put it on, please let me know how i tried many ways and failed

View post on imgur.com
$(document).ready(function() { $('#example').DataTable( { "bPaginate": false, dom: 'Bfrtip', buttons: [ 'csv', 'excel', 'pdf' ] } ); } );

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin
    Answer ✓

    The i option of the dom parameter is the information element. Put it before the t to have it before the table.

    See the dom documentation for more details.

    Allan

  • lontichimlontichim Posts: 3Questions: 1Answers: 0
    edited September 2017

    Hello Allan, pLease help me fix code , i need put it on top "Showing 1 to *** of ***"
    $(document).ready(function() {
    $('#example').DataTable( {
    "bPaginate": false,
    dom: 'Bfrtip',
    buttons: [ 'csv', 'excel', 'pdf' ] } ); } );

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin
    Answer ✓

    Did you try what I suggested above?

    The i option of the dom parameter is the information element. Put it before the t to have it before the table.

    That is the answer.

    Allan

  • lontichimlontichim Posts: 3Questions: 1Answers: 0

    I edited it by adding thisdom: ' <"top" i> Bfrtip', however it is now so close together, I want it to be another standalone stream, how, please help me
    https://imgur.com/rzxf7CL

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin

    You'll need to use CSS to do it. The information element can be selected with div.dataTables_info.

    Allan

This discussion has been closed.