Adding to Header detail
Adding to Header detail
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
Use the
dom
option to place the Datatables elements where you like.See if the
language.lengthMenu
will do what you want.Kevin
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.
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?
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