Button for next, previous, last, first, server-side??
Button for next, previous, last, first, server-side??
Have been playing around a lot and think DataTables are just great.
Although maybe I'm missig something in the pagination.
Using: "sPaginationType": "full_numbers",
- When first page is showed I would like the "First", "Previous" buttons to be hidden
- When last page is showed I would like the "Last", "Next" buttons to be hidden
Is it possible and easy? Or not possible.
Although maybe I'm missig something in the pagination.
Using: "sPaginationType": "full_numbers",
- When first page is showed I would like the "First", "Previous" buttons to be hidden
- When last page is showed I would like the "Last", "Next" buttons to be hidden
Is it possible and easy? Or not possible.
This discussion has been closed.
Replies
The other option would be to modify the pagination / create a pagination plug-in which performs exactly as you are looking for.
Regards,
Allan
sPageButtonStaticDisabled and sPageButton have the same class "paginate_button".
How can that be? Impossible to style then...
From
[code]"sPageButtonStaticDisabled": "paginate_button",[/code]
To
[code]"sPageButtonStaticDisabled": "paginate_disabled",[/code]
And applied the class.
I think this is a bug in the js files.
Regards,
Allan
I'm going to try the class definition fix suggested by allan. In the meantime, I'm curious.
There seems to be the ability to enable/disable/hide the irrelevant pagination buttons (such as First/Previous on page 1) in the two-button pagination scheme, but the same classes don't exist for the full numbers pagination scheme. It seems like this functionality would be widely used enough such that the classes should be set by default, if not styled in any particular way. In fact, now that I look more closely, it seems like the jQuery UI classes draw a distinction between an activated and deactivated button as well...
Perhaps I've missed something. Allan's solution does the trick, but why the disparity between the two built-in pagination schemes?