Moving from 1.10 to 2.2 seems like there is no "sPaginationType": "listbox"
Moving from 1.10 to 2.2 seems like there is no "sPaginationType": "listbox"

in DataTables 2
Hi,
I'm trying to update to the latest version, and notice that the paginationType has been deprecated, however I can't find that the proper replacement will be. It used to display a drop down with the page numbers.
Is there any new setup needed to archive this?
Thanks,
Luis
Answers
There never was a
listbox
type built in. You must be using a plugin for 1.x?I created an input paging plugin for 2.x, but haven't yet done a dropdown. If I have time later on today, I'll do that.
Allan
Is this the plugin you were using or was it something else? I've just trying to decide quite how many options the plugin should provide... (e.g. first / previous / next / last buttons, limit the number of options in the
select
etc).Little tasks always grow arms and legs rather quickly...!
Allan
I think the file name is datatable.extjs.page.js... but to be honest, I don't know where I got it from!!! smh
I've just committed a new plugin called
.
selectPaging
which will work with DataTables 2There is an npm package for it here.
The Bootstrap 3/4 styling isn't quite right, but I think the rest should be okay.
Let me know how you get on with it if you try it out.
Allan