≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Not showing navigation fields when there is nothing to navigate
Not showing navigation fields when there is nothing to navigate
Decebal
Posts: 3
Questions: 0
Answers: 0
August 2009
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
allan
Posts: 65,813
Questions: 1
Answers: 10,949
Site admin
August 2009
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.
Replies
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