Not showing navigation fields when there is nothing to navigate

Not showing navigation fields when there is nothing to navigate

DecebalDecebal Posts: 3Questions: 0Answers: 0
edited August 2009 in General
At the moment the navigation buttons are shown when there is nothing to navigate. I think it would be nice if the navigation buttons would not be shown when there is only one page.

Replies

  • allanallan Posts: 54,909Questions: 1Answers: 8,606 Site admin
    Hi Decebal,

    Sounds like a good idea. There are two ways (off the top of my head) in which you can do this:

    1. The quick hack - just remove the background image CSS definition for the disabled buttons. The button will still be there - just not visible.

    2. The proper way - write a paging plug-in which will hide the buttons as required: http://datatables.net/development/pagination

    Regards,
    Allan
This discussion has been closed.