location of Pagination controls

location of Pagination controls

ken edwardsken 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.

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
  • ken edwardsken edwards Posts: 5Questions: 1Answers: 0

    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.

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    All options (with the exception of the t (table) option can be specified multiple times, for if you want to show the same control multiple times (pagination at the top and bottom of the table for example).

  • ken edwardsken edwards Posts: 5Questions: 1Answers: 0

    so are you saying I could do some thing like this?
    $(document).ready(function() {
    $('#example').dataTable( {
    "dom": '<"top"p><"bottom"p><"clear">'
    } );
    } );

  • ken edwardsken edwards Posts: 5Questions: 1Answers: 0

    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.

This discussion has been closed.