Pagination - Display number of previous and next page
Pagination - Display number of previous and next page

Hello,
When i use Datatables with large amount of data, i have many pages.
For example, i have 10 pages.
Initial state of pagination is : << 1 2 3 ... 10 >>
If i click 6 times on ">>" button, pagination become :
<< 1 .. 6 .. 10 >>
Is there a solution to display the previous and next page number ?
Like this : << 1 .. 5 6 7 .. 10 >>
And maybe with a settings, define how many number we want to display
For exemple, with a setting "4 numbers"
<< 1 .. 4 5 6 7 8 .. 10 >>
Thanks !
This question has an accepted answers - jump to answer
Answers
I'm seeing the behaviour you are looking for with the defaults - see here. There are alternative built-in pagination styles, see example here, and a few other plugins that you can choose from (or use as a template to create your own).
Colin