pager buttons styles: suggestion

pager buttons styles: suggestion

bhalperinbhalperin Posts: 1Questions: 0Answers: 0
edited June 2011 in General
Pager buttons are given the class "paginate_button" and an active pager button is given "paginate_active", replacing "paginate_button".

It would make more sense to ADD this style to an active button and remove it when it becomes inactive again. So that pager buttons will always be styled "paginate_button" and will look like this:

[code]
1
2
3
4
[/code]

The reason for that is that usually all pager buttons share the same style, and the active button gets an extra style to stand out (for example font-weight: bold, or background-color: yellow). Currently I need to duplicate the styles for both classes and add this extra style for the active button.

Thanks, Benny

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Agreed! This will be addressed in the DataTables 2 update, but at the moment it's not something I want to change because of backwards compatibility issues - basically it might break some existing installs, and I don't want to do that with 1.x. It wasn't the best decision I made when originally writing that feature... One option would be to implement a custom pagination plug-in which has 'sane' classes, based on the code in DataTables.

    Allan
This discussion has been closed.