More than 5 pages in full_numbers pagination

More than 5 pages in full_numbers pagination

RicardRicard Posts: 8Questions: 0Answers: 0
edited February 2011 in General
Hi Everyone,

Is it possible to change the number of pages showed in "sPaginationType": "full_numbers" ?

I would like to show following information:
First Previous 1 2 3 4 5 6 7 8 9 10 Next Last

Thanks in advances

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    It's buried down a few objects, but yes this is possible:

    [code]
    jQuery.fn.dataTableExt.oPagination.iFullNumbersShowPages = 10;
    [/code]
    Allan
  • RicardRicard Posts: 8Questions: 0Answers: 0
    Hi Allan,

    I need to put this line in $(document).ready(function() or in any other file ? Maybe js file?

    Thanks in advance
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Anywhere after you include DataTables and before you initialise the table.

    Allan
  • RicardRicard Posts: 8Questions: 0Answers: 0
    Thanks Allan.
    It worked perfectly!
This discussion has been closed.