Adding to Header detail

Adding to Header detail

miltontmiltont Posts: 20Questions: 7Answers: 0

Hi All,

Is there a way to include the sInfo that is at the bottom of the table at the top of the table as well or can I alter the sLengthMenu?

I tried to alter the code in datatables.min.js from:
sLength:”Show MENU entries”, TO
sLength:”Show MENU entries of TOTAL Players”,

But all I get is the addition of of TOTAL Players all in text.

Any help would be appreciated.

Regards

Milton.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,141Questions: 26Answers: 4,735
    Answer ✓

    Is there a way to include the sInfo that is at the bottom of the table at the top of the table

    Use the dom option to place the Datatables elements where you like.

    can I alter the sLengthMenu?

    See if the language.lengthMenu will do what you want.

    Kevin

  • miltontmiltont Posts: 20Questions: 7Answers: 0

    Thanks for that kthorngren,

    I added a script:

    $(‘#myTable’).dataTable({ “dom”:’<”top”i>’ });

    But nothing shows up.
    Is there anything else I need to add?

    Regards
    Milton.

  • miltontmiltont Posts: 20Questions: 7Answers: 0

    I got it to work, now I am having an issue as to how to put it in the middle of the length section and the filter section.
    Any ideas?

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

Sign In or Register to comment.