≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
More than 5 pages in full_numbers pagination
More than 5 pages in full_numbers pagination
Ricard
Posts: 8
Questions: 0
Answers: 0
February 2011
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
allan
Posts: 65,825
Questions: 1
Answers: 10,952
Site admin
February 2011
It's buried down a few objects, but yes this is possible:
[code]
jQuery.fn.dataTableExt.oPagination.iFullNumbersShowPages = 10;
[/code]
Allan
Ricard
Posts: 8
Questions: 0
Answers: 0
February 2011
Hi Allan,
I need to put this line in $(document).ready(function() or in any other file ? Maybe js file?
Thanks in advance
allan
Posts: 65,825
Questions: 1
Answers: 10,952
Site admin
February 2011
Anywhere after you include DataTables and before you initialise the table.
Allan
Ricard
Posts: 8
Questions: 0
Answers: 0
February 2011
Thanks Allan.
It worked perfectly!
This discussion has been closed.
Replies
[code]
jQuery.fn.dataTableExt.oPagination.iFullNumbersShowPages = 10;
[/code]
Allan
I need to put this line in $(document).ready(function() or in any other file ? Maybe js file?
Thanks in advance
Allan
It worked perfectly!