oPaginate Text In 1.10.0 Beta

oPaginate Text In 1.10.0 Beta

MikeSMikeS Posts: 113Questions: 1Answers: 0
edited February 2014 in General
I've used the following oPaginate settings in version 1.9.4 successfully:

"oLanguage":
{
...

,"oPaginate":{
"sFirst": "|<"
,"sPrevious": "<"
,"sNext": ">"
,"sLast": ">|"
}
}

Now in 1.10.0 beta, the sFirst and sPrevious characters do not show in their respective buttons (which result in very narrow button widths). The sNext and sLast are unaffected and display correctly.

How do I make the sFirst and sPrevious options display correctly in 1.10.0 beta?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi,

    You need to use pagingType and set it to be 'full_numbers' to have the first and last_buttons show: http://next.datatables.net/reference/option/pagingType .

    Example:
    http://live.datatables.net/uxUY/1/edit

    That should also have been the case with 1.9?

    Allan
  • MikeSMikeS Posts: 113Questions: 1Answers: 0
    Hi Allan,

    Thanks for the hint. I was never setting the pagingType when using version 1.9.4 so unless its default was 'full_numbers' I don't know how to explain the difference.
  • MikeSMikeS Posts: 113Questions: 1Answers: 0
    To further complicate things, I tried setting the pagingType to "full_numbers" and it made no difference - the sFirst and sPrevious buttons remain without captions.

    If I set the sFirst to be "|<" and sPrevious to "<", it works! And this is without setting the pagingType.

    I don't understand what is causing the change, however, at least I know how to get around it.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I'd need to see a test case to understand what is going on I think.

    Allan
This discussion has been closed.