Paginator like remylab.github.com/jpaginator/
Paginator like remylab.github.com/jpaginator/
Hi guys,
it is the first i write in this forum but i checked it often looking for help!
I would like to have a paginator like this one:
http://remylab.github.com/jpaginator/
because i have an huge range of pages and i think something like that can be really helpfull.
It is something like that already done?
Could be easy to use jPaginator instead of the built in paginators?
Thank you,
Luca
it is the first i write in this forum but i checked it often looking for help!
I would like to have a paginator like this one:
http://remylab.github.com/jpaginator/
because i have an huge range of pages and i think something like that can be really helpfull.
It is something like that already done?
Could be easy to use jPaginator instead of the built in paginators?
Thank you,
Luca
This discussion has been closed.
Replies
If you create a method to integrate the two, I'm sure others would be very grateful if you would share your solution with us all!
Allan
I think i am going to do that... If it will be, i'll of course share my work here!
I was searching for that too, but didn't find, so, I wrote my own plugin.
I've published it at my blog, http://www.intellinews.com.br/blog/2012/10/26/jquery-datatables-integration-with-jpaginator-4/ (english) or http://www.intellinews.com.br/blog/2012/10/26/integrando-jquery-datatables-com-jpaginator/ (pt_BR).
I hope it helps you.
Cheers,
--
Ernani Azevedo
Allan
The plugin you built is really easy to read and works good!
But i have some question for you guys, if you can help me:
1) in 'fnInit' i had to comment the nbPages property, like this:
selectedPage: null,
//nbPages: 1,
nbVisible: 6,
If i don't, i get a "too much recursion" error. It makes any sense to you? I wasn't able to figure
out a why...
2) I had to keep 'fnUpdate' as empty function or i get all NaN insted of pages number... :(
3) Related to the point 2, i wan't able to get the total pages number in this way:
oSettings.oInstance.fnPagingInfo ().iTotalPages
It is always 0... Do you have any idea about what i am doing wrong (the result is always 0)??
4) Curious: if i use the "full_number" plugin i get the paginator at the top and at the bottom of the
datatable, using "jPaginator" i get it only on the bottom... :O
I hope my questions aren't stupid...
Thank you,
Luca
https://github.com/remylab/jpaginator/issues/3
The point 4 is still opened: i am not able to get the jPaginator at the top and the bottom of Datatable... can you help me?
Thank you,
Luca
PS: i removed the tag NAV from the plugin to make it running on not HTML5 browsers as well
I am going to leave it and write a plugin to get jPaginator on the top and the "full_number" paginator on the bottom. I will share it for who would like to use it.
Here the code for the top and bottom jPaginator:
https://github.com/lzzluca/jPaginator4Datatable