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
lontichim
Posts: 3Questions: 1Answers: 0
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
i
option of thedom
parameter is the information element. Put it before thet
to have it before the table.See the
dom
documentation 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