location of Pagination controls
location of Pagination controls
ken edwards
Posts: 5Questions: 1Answers: 0
In all the example I have seen, the pagination controls are always in the same place, lower right. I would like to have it in the lower right but also in the upper right. that way is some one is showing more rows that fit on the screen they can still change pages without scrolling.
This discussion has been closed.
Answers
Read the docs.
http://datatables.net/examples/basic_init/dom.html
Geez that was not much help. At best I might see how to put the pagination on the top from that, but I see no way to have it at the top and bottom.
so are you saying I could do some thing like this?
$(document).ready(function() {
$('#example').dataTable( {
"dom": '<"top"p><"bottom"p><"clear">'
} );
} );
Well I tried this:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {$('#example').dataTable( {
"dom": '<"top"p><"bottom"p><"clear">'} );
} );`</script>
the result was two copies of the buttons at the top, one under the other.