customize "pagingType": "full_numbers" of v1.10.7 to have it like previous versions
customize "pagingType": "full_numbers" of v1.10.7 to have it like previous versions
Actually I want to get rid of the starting page number and the last page number from full_numbers pagination type.
Version used : jquery datatable 1.10.7
Suppose the table has 10 pages, need to display 5 page buttons at a time and pagination should be as follows.
Case 1 : When on Page1
Pagination : First Previous 1 2 3 4 5 Next Last
Case 2 : When on Page4
Pagination : First Previous 2 3 4 5 6 Next Last
Case 3 : Similarly when on Page on Page 5
Pagination : First Previous 3 4 5 6 7 Next Last
I want to customize the full_numbers pagination style to have pagination like this.
Thanks in advance :)
Answers
Need exactly the way we have in this link - http://www.sprymedia.co.uk/dataTables-1.4/example_alt_pagination.html
Not very generic, but this is what I did to achieve the same (the logic will fail if the pagination button count is changed)... I will update a generic version shortly.
Finding a way to over ride the function with out altering the original library.