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
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:
This discussion has been closed.
Answers
The
ioption of thedomparameter is the information element. Put it before thetto have it before the table.See the
domdocumentation for more details.Allan
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' ] } ); } );
Did you try what I suggested above?
That is the answer.
Allan
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
You'll need to use CSS to do it. The information element can be selected with
div.dataTables_info.Allan